How to populate display name of subject person in HR case form though UI page.

Ramya LR
Tera Contributor

Hi,

 

We have UI action "retrieve document" in the " HR form" where we have field called "user". On click of that UI action, subject person name should get auto populate in that user field, but i am getting user record, name is not getting auto populate. Is there any resolution for the same?

 

Regards,

Ramya.

1 ACCEPTED SOLUTION

Rahimunnisa Sha
Kilo Guru

@Ramya LR 

I got the issue. Could you please share the script screenshot. So that I can guide you.

View solution in original post

11 REPLIES 11

Rahimunnisa Sha
Kilo Guru

@Ramya LR 

I got the issue. Could you please share the script screenshot. So that I can guide you.

@Ramya LR 

You might have used referenced field to populate the user field and just used -

g_form.setValue('user',g_form.getValue('referencedfield'));

Instead of the above use below:

g_form.setValue('user',g_form.getDisplayValue('referencedfield'));

 

Please mark as accepted if the solution helps.

I am fetching details from UI page.

Ramya LR
Tera Contributor

Hi Please find the screenshot.

<g:ui_reference name="User" id="user" table="sys_user" query="active=true" value="${sysparm_subject_person}" completer="AJAXTableCompleter" ng-model="user" displayvalue="${case_subject_person1.getDisplayName()}"/>