Skip to main content
Question

The customized field does not show on Users screen (SM201010) Modern UI 2026r1

  • May 13, 2026
  • 2 replies
  • 12 views

Forum|alt.badge.img+6

I have added a custom field "UsrDefaultW" to the Users screen (SM201010) in Classic UI. The field is bound to the “UserList” view and located in the “User Information” container.My problem:
In the official Modern UI source code of SM201010:
- `UserList` is a view instance defined in the screen class (`createSingle(Users)`)
- Only the `Users` class is exported, the `UserList` view is NOT exported
My Ts and html extension files are attached.
They can build, but no field show on screen.
What is the correct way to add custom fields on SM201010 Modern UI?

2 replies

Forum|alt.badge.img+9
  • Captain II
  • May 13, 2026

@ray20 

 

How did you build? I saw a previous post from you where you mentioned you had to publish the customisation project.

 

I have encountered issues with publishing the project, then building via npm, if you pick one approach you should stick with it to avoid these issues.

 

Dependent on if my assumption of you building via npm is correct, could you please update the customisation project with the modified files, then see if that works for you.


Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • May 13, 2026

@ray20 In Modern UI, you should extend the DAC class that is actually exported from views.ts.
For SM201010, the UserList view itself is NOT exported, but the DAC  model class (Users) is exported  and that is the correct target.

 

.TS File:  You only need to extend the exported Users lass.

Can you please try with the below code?

import { PXFieldState, placeAfterProperty } from "client-controls";
import { Users } from "src/screens/SM/SM201010/views";

export interface UsersExt extends Users {}

export class UsersExt {
@placeAfterProperty("Username")
UsrDefaultW: PXFieldState;
}

 

.HTML File:
 <template for="Users">
<field name="UsrDefaultW" after="Username"></field>
</template>

 

If this is not working, please share the customization package, we will look into it and let you know the root cause.