Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

How to show the reference field in popup of UI action

Santhosh23
Tera Expert

How to show the reference field in popup of UI action

1 ACCEPTED SOLUTION

@Santhosh

It won't show since it's an OOB way on how to show table list

Regards
Ankur

View solution in original post

20 REPLIES 20

@Ankur Bawiskar  its loading for long time and not opening the lists.

find_real_file.png

Hi,

if the table is huge it would take time

try to give query as per your requirement

function showWindow(){

    var dialog = new GlideDialogWindow('show_list');
    dialog.setTitle('Users');
    dialog.setPreference('table', 'sys_user_list');
    dialog.setPreference('sysparm_view', 'default');

     dialog.setPreference('sysparm_query', 'active=true^company.name=ACME');

}

Regards
Ankur

@Ankur Bawiskar   Added the conditions to show only one user but that still loading.

Hi,

you forgot the line to render

function showWindow(){

    var dialog = new GlideDialogWindow('show_list');
    dialog.setTitle('Users');
    dialog.setPreference('table', 'sys_user_list');
    dialog.setPreference('sysparm_view', 'default');

     dialog.setPreference('sysparm_query', 'active=true^company.name=ACME');

  dialog.render();

}

Regards
Ankur

Thanks @Ankur Bawiskar  Its showing the list now but its not showing the ok button to select one value from the list