Open Closed

Bug with Extended Properties being controlled in the UI for Dependent Modules #2886


User avatar
0
balessi75 created

Abp Commercial 5.2.0 / Blazor Server / EF Core / Non-tiered

Hi,

We have extended the IdentityUser entity with a new property but need to have the property only visible on the user listing (needs to be hidden on the create and edit modal). To accomplish this, we implemented the following in our ProjectNameModuleExtensionConfigurator class:

   user.AddOrUpdateProperty<string>( 
                        EmployeeConsts.FullName 
                       , property =>
                       {
                            property.DisplayName = LocalizableString.Create<TimepieceResource>(
                               "DisplayName:FullName");
                           property.DefaultValue = null;
                           property.UI.OnCreateForm.IsVisible = false;
                           property.UI.OnEditForm.IsVisible = false;
                           property.UI.OnTable.IsVisible = true;
                        }
                    );

The extended property, however, is still visible on the create and edit modals.

Are we doing something wrong, or is this a bug?

Thanks in advance.


3 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @balessi75, it seems there is not any check on UI for Create and Edit forms. I've created an issue for this. Thanks for reporting.

  • User Avatar
    0
    balessi75 created

    Hi @balessi75, it seems there is not any check on UI for Create and Edit forms. I've created an issue for this. Thanks for reporting.

    Thanks @EngincanV!

    While working on this, would you also be able to add the following two properties as a new feature? We actually have a business need for them...

    property.UI.OnCreateForm.IsReadOnly; property.UI.OnEditForm.IsReadOnly;

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @balessi75, as I've seen you've created a separate question (#2908) for this suggestion. So, let's discuss it there.

    I close the question since an issue (#12230) is created for your problem and we will take the necessary action about it. Thanks for reporting.

    Best regards.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11