- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 07:38 PM
Hi All,
I have a UI Action as a List banner button which I want to open a dialog box update, close multiple catalog tasks at the same time selected from a list. It works fine, updates and closed all tasks, however I cannot get the list to refresh once the action has completed.
This in true in our dev and test instances. Things I've tried;
- Without adding any of my own refresh logic (as pictured above). Should a list refresh be triggered by default from showQuickForm()?
- Client-side refresh from script of the UI Action
-
- reloadWindow(window)
- g_list.refresh(1)
- top.gsft_main.location.reload();
- GlideList2.get("sctask").refresh();
- GlideList2.get(sc_task).setFilterAndRefresh('');
-
//Refresh the list of tasks if (GlideList.lists) { var list = GlideList.get(name); if (list) { list.refresh(); }
- Server-side refresh via an event.
-
- gs.eventQueue('iam.refresh.list', current, null, null); which in turn triggered a Script Action
- Same event which triggered a business rule
I've seen most of these methods work at least on the initial test. This behavior is consistent with all my attempts to fix the issue
Any help/insight is appreciated.
Cheers
Daniel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2019 06:18 PM
I logged an incident in HI and worked through this issue with support.
The root cause, refreshing a list from UI Action, looks to be caused by a URL character encoding issue on a menu module I created using URL from arguments. The issue occurs when attempting to manually construct the URL to control the sort order, which I was doing, by following the official documentation https://docs.servicenow.com/bundle/helsinki-platform-administration/page/administer/list-administrat....
However the character “^” must be encoded correctly with “%5E” in the URL when adding it to a Menu Module’s “URL (from arguments)” type.
While manually constructing the URL by following the docs site to control the sort does display as desired. This character encoding issue makes the refresh functionally post running a UI action stop working.
Happy this is now resolved.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 09:39 PM
Hi
Are your actions getting triggered?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 09:07 PM
Yes the actions trigger ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 10:55 PM
Can you try these once and check if it works
var w = top.gsft_main || top;
w.location.reload();
OR
GlideList2.get(g_form.getTableName() + '.sc_task.parent').setFilterAndRefresh('');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 09:19 PM
Hi Alikutty,
Thanks for your help. I've tried both methods and my results;
For the first w.location method initially this worked with multiple tests refreshing correctly. However the same as my other attempts, I close and reopen my browser, it stops working permanently.
You GlideList2.get method I had even less success.
Cheers
Daniel