Starts in:
2 DAYS
3 HRS
14 MIN
49 SEC
Starts in:
2 D
3 H
14 M
49 S
Open Closed

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


User avatar
0
lizhaofeng created
  • 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 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team 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 created

    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 created
    Support Team Fullstack Developer

    hi

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

  • User Avatar
    0
    lizhaofeng created

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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can customise it after 7.3.

  • User Avatar
    0
    alper created
    Support Team Director

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

  • User Avatar
    0
    lizhaofeng created

    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 created
    Support Team 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 v9.1.0-preview. Updated on November 20, 2024, 13:06