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

Ui action written on "core case" table.

dialog.setPreference('sysparm_subject_person', g_form.getValue('subject_person'));
dialog.setPreference('sysparm_subject_name',g_form.getDisplayValue('subject_person'));

 

Calling those parameters in UI page.

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

if you are using the sys_user table why the Hr case record number is populating which is not stored in sys_user table?Could you please check the fields configuration once