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

Hey @Dr Atul - 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.

Sohail Khilji
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