Starts in:
1 DAY
16 HRS
26 MIN
27 SEC
Starts in:
1 D
16 H
26 M
27 S

Angular - Missing Object Extension Form Prop Generation for Roles Component #18673

Description

Resolves #18648

Here is a demo to show what is changed

https://github.com/user-attachments/assets/06584213-e2a6-4554-a633-1d484c613edd

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)
  • I've assigned reviewer, related labels and set a milestone for this PR

How to test it?

  • You need to add an object extension for the role entity that might be similar to this
    MyCompanyName.MyProjectName.Domain.Shared/MyProjectNameModuleExtensionConfigurator.cs
 ObjectExtensionManager.Instance.Modules().ConfigureIdentity(identity =>
            {
                identity.ConfigureRole(role =>
                {
                    role.AddOrUpdateProperty<string>(
                        "displayName",
                        property =>
                        {
                            property.DefaultValue = "-";
                            property.Attributes.Add(new DisplayColumnAttribute("Role name"));
                            property.Attributes.Add(new EditableAttribute(true));
                            property.Attributes.Add(new RequiredAttribute());
                            property.UI.OnEditForm.IsVisible = true;
                            property.UI.OnCreateForm.IsVisible = true;
                        });
                });

                identity.ConfigureUser(user =>
                {
                    user.AddOrUpdateProperty<string>(
                        "test",
                        property =>
                        {
                            property.DefaultValue = "-";
                            property.Attributes.Add(new DisplayColumnAttribute("Role name for user"));
                            property.Attributes.Add(new EditableAttribute(true));
                            property.Attributes.Add(new RequiredAttribute());
                            property.UI.OnEditForm.IsVisible = true;
                            property.UI.OnCreateForm.IsVisible = true;
                        });
                });
            });
  • Then you can run the app and see the changes
Version
9.0.0-rc.1
Release Date
22 October, 2024
Labels
ui-angular problem foundby-community