Açık Kapalı

How to add NAME&SURNAME to the members of organization units #5299


User avatar
0
lizhaofeng oluşturuldu
  • ABP Framework version: v7.2.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

If your company is using employee IDs for user registration and it's difficult to distinguish users without their names, how can add the fields for name and surname in the member addition and listing interfaces in the organization.


8 Cevap
  • User Avatar
    0
    maliming oluşturuldu
    Destek Takımı Fullstack Developer

    hi

    You can override the OrganizationUnitsManagement(namespace Volo.Abp.Identity.Pro.Blazor.Pages.Identity) component.

    Add new columns.

    new TableColumn
    {
        Title = L["DisplayName:Surname"],
        Data = nameof(IdentityUserDto.Surname),
        Sortable = true,
    },
    
    

  • User Avatar
    0
    lizhaofeng oluşturuldu

    hi,maliming By overriding the SetUserManagementTableColumnsAsync method, I have successfully added the fields for first name and last name to the member list.

    If you need to implement Figure 2, how to display the first name and last name when adding and modifying members, and how to filter the queries as well?

  • User Avatar
    0
    maliming oluşturuldu
    Destek Takımı Fullstack Developer

    hi

    We will make the add member expandable in the next version.

  • User Avatar
    0
    lizhaofeng oluşturuldu

    thx maliming. If there are any updates, please contact me.

  • User Avatar
    0
    maliming oluşturuldu
    Destek Takımı Fullstack Developer

    hi

    You can customise it after 7.3.

  • User Avatar
    0
    alper oluşturuldu
    Destek Takımı Director

    I reopened the question. @zhaof you can write the recent status.

  • User Avatar
    0
    lizhaofeng oluşturuldu

    hi maliming

    When I upgraded to ABP version 7.3, I couldn't find a suitable way to override the AddMemberTableColumns and AddRoleTableColumns methods. Please tell me what I should do.

    thanks

  • User Avatar
    0
    maliming oluşturuldu
    Destek Takımı Fullstack Developer

    hi @zhaof

    We found a little issue, which will fix on 7.3.1. but you can override it now. Sorry for that.

    Please copy the code from https://gist.github.com/maliming/72896c68db8189b88c7206bff9e10628

Made with ❤️ on ABP v8.2.0-preview Updated on Mart 25, 2024, 15:11