Redirect to self on List View from button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 08:03 AM
Hi,
Here is what I'm trying to achieve. In the App Navigator I have an application with a few modules. Each of the modules, when clicked, render a list view of a table with certain filters/groupings applied. In the list view I can check one or many records and click a List View button to run a UI Action. The UI Action will do "stuff" that will update the selected record(s) server side.
At the end of the UI Action I want to refresh the list view. Looked at action.redirect and can hard code it but I wanted something more dynamic so it'll redirect to the list view I was on before clicking the button.
I might be able to use action.getGlideURI().toString() but once I have the URI not sure action.redirect will be able to do with it - also there may be "noise" in the URI, e.g. sysparm attributes.
What I ideally need is the format, when you query a table and then right-click the breadcrumb and "Copy URL". If I could grab that it would be wonderful.
Gavin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2017 08:05 AM
Have you tried gs.setRedirect()?
https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=r_GS-setRedirect_O