
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2017 12:50 PM
Looking for some help getting Mobile interface to refresh list after UI action is taken
Requirements: take UI action to update a record from list. After update, have the list refresh so user can see updated record disappear (update changes data on record to make it no longer meet the criteria of list condition). Navigating back form list should return to mobile home page.
UI Action:
//Cancel delegation by setting end date to 1 min ago
var now = new GlideDateTime(gs.nowDateTime());
now.addSeconds(-60);
current.ends=now.getValue();
current.update();
Attempted refresh with redirect url
action.setRedirectURL('$m.do#/list/sys_user_delegate?sysparm_query=userDYNAMIC90d1921e5f510100a9ad2572f2b477fe%5Eapprovals%3Dtrue%5Eends%3Ejavascript:gs.minutesAgoEnd(0)%5EEQ');
Issues:
With no redirect and navigate back set false, Android phones will automatically refresh the list, but iphone and the mobile emulator will not.
With redirect URL to the list and navigate back set false, the system adds the list again to the navigation stack. Now when one navigates back, they are navigating back to the un-refreshed previous list. Thus user has to navigate back 2x to get back to home screen.
I have attempted to change the stack using sysparm_clear_stack and sysparm_stack=$m.do# but either I am doing something wrong or mobile completely ignores the stack parameters in the URL.
Solved! Go to Solution.
- Labels:
-
Now Mobile

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 02:49 PM
Yes, service now is not addressing this as a problem and has submitted an enhancement request to make it work, but I wouldn't hold my breath. We are completely moving away from the mobile application due to shortcomings like this, and going 100% Service Portal where we can actually control things.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 08:58 AM
I have opened a ticket with servicenow to assist with the redirect issues and the fact that it seems to work differently on Android/iPhone/WebUI. Will update with the outcome of the ticket.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2017 10:09 AM
Jonathan,
Did you ever get a solution on this redirect problem? I'm wanting to do something similar.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2017 02:49 PM
Yes, service now is not addressing this as a problem and has submitted an enhancement request to make it work, but I wouldn't hold my breath. We are completely moving away from the mobile application due to shortcomings like this, and going 100% Service Portal where we can actually control things.