How to connect UI Action with UI Page?

BKulisz
Tera Contributor

Hey All, 

 

I am just wondering what is the easiest way to connect the UI Action with UI Page? 

 

Let me explain that based on example: 

 

I have a simple UI Action (button): 

 

BKulisz_0-1708598964397.png

 

and after click of it, I would like to see the simply UI Page which I have created.

 

Do you have any simple solution? 

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @BKulisz 

 

https://www.servicenow.com/community/itsm-forum/code-to-call-ui-page-from-ui-action-button/m-p/51738...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hey @Dr Atul G- LNG , 

 

I was trying to follow the steps within this article but It's not working actually...Is there any easier way to achive that goal?

Hi Mate, I have this with me.

 

@Sohail Khilji any input.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @BKulisz ,

 

You can call a ui page from a UI action fromm the follwing code example in set in UI action:

function callPage(){
	var gr= new GlideDialogWindow('nameofuipage');
	gr.setSize(700,500);
	gr.setPreference('table_name', g_form.getTableName());
	gr.render();
}

 

i hope this helps @BKulisz 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect