- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2020 10:41 PM
Hi ,
I have a requirement to Trigger UI Page using a Button . Onclick() i am trying to open a Ui page.
* Button Created using Ui Actions in a Table's Form
* Both Ui page and Ui action are in the Same scope .
I have Tried these ways :
1.g_navigation.openPopup() for ui page
2,window.open('/<UipageNAME >.do?sysparm_id='+g_form.getUniqueValue());
3.Dialog
var dialog = new GlideDialogWindow("UipageNAME");
dialog.setTitle("UI Page Opened");
dialog.setPreference("sysparm_id", g_form.getUniqueValue());
dialog.render();
Nothing Worked For me . Maybe , I had issue in Creating url for ui Page .
Check My Previous Thread : https://community.servicenow.com/community?id=community_question&sys_id=a0fb1736db13c0502be0a851ca96...
But , i had a Hard Time Creating URL for Ui page .Its not Working
Help me Creating url for a Ui Page in Right way . My UI Page : TraceDemo
Please ,Help me in Triggering Ui page Using Ui Actions Button.
Any Suggestion is Appreciated .
Thankyou,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 10:55 PM
i tested with other d3.js library and showing me the content, so please validate with your script which you are using on your UI Page.
https://d3js.org/d3.v4.js

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2020 10:53 PM
if you will go to the ui page, pass the endpoint field value as ui page name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2020 11:17 PM
Hi Harshvardhan,
I have done using Endpoint name : x_445906_mydemo_Trace.do
It showed Error .
I Removed (.do ) and Tried, This Time No Error but Nothing is Visible .
My Ui Page consists , html , css, javascript .
Does Dialog Box was unable to Render That Ui page ??
Is that the issue ??
If thats it > Can we Show ui page in Another Window .
Using Window.Open, g_navigation.openPopup() Methods .
But , i need Ui page url for that .
Can u Know How To Create Url for Ui Page .
Thankyou ,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2020 11:21 PM
are you doing it on personal instance, i can quickly check it , if yes share the details on below email.
hvrdhn88@gmail.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2020 11:31 PM
Hi Harshvardhan ,
Sorry .
I'm not supposed to do so , Its a Multiple user Instance .
I can Give you the Entire Code in Ui page and Ui Button .
Thankyou ,
If my answer helped you, kindly mark it as correct and helpful.