Return to Previous URL from UI Page DialogWindow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 07:51 AM
Hi All,
We have designed a dialog box which will triggered via UI action present in list context. Once the submit is clicked, we are updating the records and once the processing script is executed i want to page to reloaded to the current URL.
For this i am using the below code at end of processing script -
var urlOnStack = GlideSession.get().getStack().bottom();
response.sendRedirect(urlOnStack);
It's working fine but their is one scenario where user is opening the list page and if user open another page in between and then again go to the list page and perform the operation in the dialog box. It's redirecting to the new page which i have opened in between. I think it's due to the session.
Can you please advise on this.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 10:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 10:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 10:26 AM
Hi,
you can pass any value from UI action to UI Page HTML Section; from html section you can pass it to processing script and in processing script you can get this value and return to this
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 10:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2020 08:35 PM
Hi,
please share your existing UI action, UI page script; that would be helpful
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader