Opening in new Tab/Window through UI action

Prashant Singh1
Tera Contributor

Hello Experts, 

 

I have a UI action "Create Story" in Incident form. I want to open that in new window as of now it is opening in the same window. Please advise. 

2 ACCEPTED SOLUTIONS

@Prashant Singh1 ,

 

Apologies I haven't read your problem statement.

 

Yes for achieving the new tab functionality, you need to make the UI action as "client" and it is not possible in server side scripting.

and make a GlideAjax call, to server side and after inserting the record into the table please return the sys_id from server's end.

 

var url = "/rm_story.do?sys_id=" + answer)

 

 g_navigation.openPopup(url)

 

Please find the link here  for more information or let me know if you have some queries.

 

Do you need further help or If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

View solution in original post

@Prashant Singh1 ,

 

This can be converted, please check the checkbox of client and follow the instructions as mentioned in below screenshot:

 

PRINCE_ARORA_0-1679483343329.png

 

and please move your gliderecord's code in the script include and make a string from the server's end and return.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

 

 

View solution in original post

8 REPLIES 8

@Prashant Singh1 ,

 

Apologies I haven't read your problem statement.

 

Yes for achieving the new tab functionality, you need to make the UI action as "client" and it is not possible in server side scripting.

and make a GlideAjax call, to server side and after inserting the record into the table please return the sys_id from server's end.

 

var url = "/rm_story.do?sys_id=" + answer)

 

 g_navigation.openPopup(url)

 

Please find the link here  for more information or let me know if you have some queries.

 

Do you need further help or If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

Hi Prince , Yes that is helpful! One more thing please . Do I need to write new UI action for Client side ? or this(Old server side one) can be converted to Client side ?

@Prashant Singh1 ,

 

This can be converted, please check the checkbox of client and follow the instructions as mentioned in below screenshot:

 

PRINCE_ARORA_0-1679483343329.png

 

and please move your gliderecord's code in the script include and make a string from the server's end and return.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

 

 

priyasunku
Kilo Sage

Hi @Prashant Singh1 

 

you can use 

 

g_navigation.open(url);

 

 

 

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful