The CreatorCon Call for Content is officially open! Get started here.

How To Create Url that Triggers a Ui page ??

Tarun2
Tera Contributor

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,

1 ACCEPTED SOLUTION

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

 

find_real_file.png

 

If my answer helped you, kindly mark it as correct and helpful.

 

View solution in original post

14 REPLIES 14

Harsh Vardhan
Giga Patron

if you will go to the ui page, pass the endpoint field value as ui page name 

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 , 

are you doing it on personal instance, i can quickly check it , if yes share the details on below email. 

 

hvrdhn88@gmail.com

Tarun2
Tera Contributor

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 ,