Open Closed

How set disable or readonly ExtraProperties on Personal info of My Account menu? #5329


User avatar
0
thuc.nghiem@techplus.vn created
  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
    1. I create two ExtraProperties of AbpUsers table is "LoanOfficer" and "BranchCode"
private static void ConfigureExtraProperties()
    {
        ObjectExtensionManager.Instance.Modules().ConfigureIdentity(identity =>
        {
            identity.ConfigureUser(user =>
            {
                user.AddOrUpdateProperty<string>(UserConsts.LoanOfficer,
                    options =>
                    {
                        options.Attributes.Add(new RequiredAttribute());
                        options.Attributes.Add(new StringLengthAttribute(UserConsts.MaxLoanOfficerLength));

                    });
                user.AddOrUpdateProperty<string>(UserConsts.BranchCode,
                    options =>
                    {
                        options.Attributes.Add(new RequiredAttribute());
                        options.Attributes.Add(new StringLengthAttribute(UserConsts.MaxBranchCodeLength));
                    });
            });
        });

    }
    1. I click a username->My Account -.> Personal info
    1. I want disable or set readonly of ExtraProperties in screen Personal info.
    1. I have Account module.
  • 5, Help me,

2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    This feature will be available in 7.4.

    https://github.com/abpframework/abp/issues/12249

    Currently, you need to customize the profile page: https://docs.abp.io/en/commercial/latest/ui/angular/manage-profile-page-tabs

  • User Avatar
    0
    thuc.nghiem@techplus.vn created

    Thanks!

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38