Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Refresh the workspace from ui page opened through action assignment

indu13
Tera Contributor

Hi,

I was able to open a Ui page from workspace button using the below code. Now the issue comes to close it/ reload the whole page.

 

Code used in related list action - 

var ui_page_id = <sys_id of the ui page>;
 g_modal.showFrame({
        url: '/ui_page.do?sys_id=' + ui_page_id;
        title: 'Add Point of Contact',
        size: 'xl',
        width: 800,
        height: 400
    });
 
The opened modal is closing with location.reload(); but i want the workspace page reload or the related list reload to reflect the actions performed in the ui page.
3 REPLIES 3

Naveen Ganji
Tera Contributor

@indu13 My requirement is also similar to this, Did you get the solution, if yes- could you please share..?

Hi Naveen,

 

I haven't got the solution, i have put an alert for the customers to refresh the list

Please let me know if tou find the solution

thanks

indu

Binnie
Tera Contributor

Hi @indu13 ,
I also face the same issue, did you get the best practice? Really appriciated if you could share..