Käyttäjän "balessi75" toiminnot

Hi, We are using Abp Commercial 5.1.3 / EF / Blazor Server / Non-Tiered.

With a newly created project from Abp Suite, we get the following when keying in blank spaces into an input on either login or registration.

We overrode the register razor page, to enhance the validation and get a better understanding how it works in Abp. The input model in Abp has the Required attribute defined for each input field, but blank spaces are not picked up by the UI and the RegisterLocalUserAsync method just exceptions out with an invalid model. So it is unclear to us what the recommended approach here is.

We followed: https://docs.abp.io/en/abp/4.4/Validation#validation ... and implemented the following in Register.cshtml.cs

 public IEnumerable<ValidationResult> Validate(
           ValidationContext validationContext)
        {
            if (FirstName.Trim() == String.Empty)
            {
                yield return new ValidationResult(
                    "First Name must be specified",
                    new[] { "FirstName" }
                );
            }
        }

This kind of worked once we caught the validation exception, but this validation is all server side and not client side like when the inputs are null and the 'Required' attribute is set in the data model. Additionally the UI is lacking and not consistent when we do this validation.

For example, the built in required validation looks correct, like this:

but the server side validation to accommodate blank spaces is styled like this...

Any help or recommendations you have is greatly appreciated.

Regards, @balessi75

Abp Commercial 5.1.3 / EF / Non-Tiered / Blazor Server

Is there an expiration on the confirm email link, password reset link, or 2 factor code in Abp? If so what is it's default expiration time and how can it be changed and or implemented (if not provided by Abp)?

Hi, We are using Abp Commercial 5.1.3 - Blazor Server. We need to override Abp's Register.cshtml page which we have successfully done.

We have a requirement, however, to utilize an existing Blazor Component (Telerik UI for Blazor) in the overriden Register.cshtml page in our Blazor Server solution. By default this does not appear to be possible because the Register page is an MVC page. Is it possible to accomplish this? And if so, what would be the steps to make this scenario work?

Thanks in advance, balessi75

Abp Commercial 5.1.3

We have a requirement to override the Register.cshtml page by adding a DateOfBirth input field. It is defined as follows..

The field works as expected, except for the fact that it's value is cleared on post when when the Register App Service returns a user friendly exception and the user friendly error is shown at the top of the register dialog. All other input fields retain their value.

Is there something simple I'm missing here? Any work arounds to get the input to retain it's selected date when posting with validation errors?

Kysymys

Abp Commercial 5.1.3 / EF / Blazor Server

The EasyCRM demo and examples in project types other than Blazor feature the ability for the user to specify the paging size on data grids...

However, we do not see this feature in the base modules of Blazor Server. Is this just not implemented yet in Blazor or is there a way to turn this feature on? We have a requirement to have a grid footer shown like above.

Thanks in advance. Brian

Abp 4.4.3 Commercial (Enterprise) / Blazor Server / EF

Hello, We need to customize the ordering of permission groups in the permission management modal. We used the following document as a reference... https://docs.abp.io/en/abp/4.4/UI/Blazor/Customization-Overriding-Components

Under ...Blazor\Components in our solution, we created a MyPermissionManagmentModal.razor and MyPermissionManagementModal.razor.cs file. We then copied the corresponding source from... https://github.com/abpframework/abp/tree/rel-4.4/modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components into our razor and razor code-behind file.

Our MyPermissionManagementModal inherits from Abp's PermissionManagmentModal and we decorated our Modal with... [ExposeServices(typeof(PermissionManagementModal))] [Dependency(ReplaceServices = true)]

At runtime, we can see that a breakpoint is hit in the constructor of MyPermissionManagementModal which is good, however, when we click to open the modal, we receive the following... An internal error occurred during your request! 2022-01-18 16:21:58.742 -05:00 [ERR] Delegate to an instance method cannot have null 'this'. System.ArgumentException: Delegate to an instance method cannot have null 'this'. at System.MulticastDelegate.ThrowNullThisInDelegateToInstance() at Volo.Abp.PermissionManagement.Blazor.Components.PermissionManagementModal.OpenAsync(String providerName, String providerKey, String entityDisplayName)

A break point in our modal at OpenAsync never gets hit.

We are at a loss as to where to go from here and are wondering if we are attempting to solve this problem in an incorrect way. Any help would be greatly appreciated.

Thank you!

Hi, We are using ABP version 4.4.3, Blazor Server, EF Core

Does ABP provide the ability to setup and require email and/or text verification prior to self-registration? We are having difficulty finding ABP documentation on this. We did find this community article https://community.abp.io/articles/setup-email-confirmation-on-user-registration-q0vgxang But much of it appears to not be applicable to Blazor Server.

Any guidance would be much appreciated. Thanks.

  • ABP Framework version: v4.4.3
  • UI type: Blazor Server
  • DB provider: EF Core

We see examples of rendering a grid using the approach of <DataGrid ....> <DataGridColumns...> <DataGridColumn...> where each column's definition is defined in the .razor file markup. We also see examples of using <AbpExtensibleDataGrid...> where all of the grids column specifications are defined in the razor.cs code behind file in C#.

Which approach is generally recommended and under what senario would you use one approach or the other?

Thanks as always!

Abp Commercial, Blazor Server, v 4.4.3, EFC

How can the Entity Action Button in the Blazorize grid be custom styled?

Also, the Entity Action button in Blazor Server does not show a single click action button when there is only one action item defied. With one action item, a drop down is still rendered requiring two clicks. Is there a workaround for this issue?

  • ABP Framework version: 4.4.3
  • UI type: Blazor Server
  • DB provider: EF Core

We've created a solution using abp suite and chose to separate host and tenant db's. Each tenant is configured to have its own separate database. Everything is working as expected using the base abp modules when logging in and out of the host and tenant databases.

The problem we are running into is that, when we create a new entity, the entity is always being accessed from the host database, even when we are logged into a specific tenant database.

There are two database contexts that were created from the project template (AppNameDbContext and AppNameTenantDbContext). Our entity’s custom repository is referencing the TenantDbContext as follows:

public class EfCorePayPeriodRepository : EfCoreRepository<TimepieceTenantDbContext, PayPeriod, int>, IPayPeriodRepository{...}

We also made sure to include the following in the ConfigureServices method of the EnittyFrameworkCore Module:

context.Services.AddAbpDbContext<TimepieceTenantDbContext>(options => { options.AddDefaultRepositories(includeAllEntities: true); options.AddRepository<PayPeriod, EfCorePayPeriodRepository>(); });

The DbSet and Model building was also done in the TenantDbContext.

When using the repository, however, the framework always attempts to access the host database instead of the tenant database. Is there something we are missing with regards to entities that should only be created and accessed from the tenant database?

Guidance is much appreciated. Thanks.

Näytetään 81 - 90/92 tietueesta
Made with ❤️ on ABP v8.2.0-preview Updated on maaliskuuta 25, 2024, 15.11