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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

20 REPLIES 20

Yes correct

Hell0 Santosh,

Create  UI page with below code in HTML/XML script field

<g:ui_reference name="user" id="user" table="sys_user_" query="active=true" completer="AJAXTableCompleter" />

Call it in your UI action like below

 

function yourFunctionName()
{
var dialog = new GlideDialogWindow("your UI page name"); //Render the dialog containing the UI Page 'task_comments_dialog'
dialog.setTitle("Users"); //Set the dialog title
dialog.render(); //Open the dialog
}

For more info on glide dialog window please refer below link

https://servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/

 

For more info on jelly tags refer this link

https://docs.servicenow.com/en-US/bundle/sandiego-application-development/page/script/general-script...

Please mark my answer correct if it helps you

 

@Mohith Devatte 

I tried and Its showing like this.

find_real_file.png

Hello in the glideDialogWindow () did you use the UI page name or the endpoint name?

IF you used UI page name please replace it with end point name

you can find end point field in UI page it self

please try this and let me know

function yourFunctionName()
{
var dialog = new GlideDialogWindow("UI page end point name"); //Render the dialog containing the UI Page 'task_comments_dialog'
dialog.setTitle("Users"); //Set the dialog title
dialog.render(); //Open the dialog
}

 

hey santosh did it help ?You got the pop up correctly with reference field now?