Button in agent workspace not refreshing the page.

Rakhesh
Kilo Guru

Hi Team,

We are facing an issue with UI Action in the agent workspace. We have a button and if it clicks, it will reload the page and creates a record on 'x' table in normal(ITIL) ticket view. But when comes to the same button in workspace it is not reloading the page and not creates a record. But when I manually reloading the workspace page then it's creating. please check the below code that we wrote and let me know if any changes in the UI Action script. it should be work on both workspace and normal(ITIL)ticket views.

Tried all the ways but issue was not resolved..

find_real_file.png

 

1 ACCEPTED SOLUTION

Can you check the Client Checkbox as True as shown below :

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

25 REPLIES 25

Still not working. Page always showing please wait. But when i manually reload it then it's effecting the time worked and time card

find_real_file.png

shloke04
Kilo Patron

Hi,

Try this in Workspace Client Script and let me know if you are still facing an issue:

function onClick(g_form) {
	g_form.reload();
}

Refer the blog below on the same topic:

https://community.servicenow.com/community?id=community_article&sys_id=4bed66b6db91fc1014d6fb243996199b

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hi @shloke04  

Modified the script as per your inputs but still not refreshing page. So i'm attaching the entire ui action below please have a lookfind_real_file.png

find_real_file.png

 

 

Can you check the Client Checkbox as True as shown below :

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Yes I have checked it is refreshing but script not working

find_real_file.png

find_real_file.png