refresh related list only

eican
Kilo Guru

Hi Everyone,

I am trying to trigger a refresh of a related list after a cell was edited.
Each list has an option called "Refresh List" (to be found in the list context menu) and this is also available for related lists. When selected it refreshes only the related list and not the whole form.

In the wiki I found the GlideList2 command "g_list.refresh()"
http://wiki.servicenow.com/index.php?title=GlideList2_(g_list)#refresh

I managed to trigger it with an UI Action but then the whole form and not the related list only is refreshed/reloaded.

When I walk the DOM I find the code behind the list menu option but wasn't able to figure out how to trigger it with the right context from a client script. In the DOM the command is as simple as "g_list.refresh(1)".

Does anyone has an idea how to accomplish this? Any help is appreciated.


Thank you!

2 REPLIES 2

Not applicable

Any answers on this one? I am trying to do something similar. When a field on the form changes I do a calculation and then I want to refresh the related list with updated calculated values.

Thanks!


I just found a solution for this:
http://www.servicenowguru.com/scripting/client-scripts-scripting/reload-form-related-list-client-script/