Need help to make UI action conflict calendar work in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 09:08 AM
Hi, all, we have an OOTB UI action for change_request table: conflict calendar, it works great in classic form, but not in workspace form.
Here is the script I used:
I got error: SCRIPT:EXEC Error while running Client Script "GlideScopedScript": ReferenceError: g_navigation is not defined
Please help. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 10:40 AM
Can you try:
action.setRedirectURL(current);
instead of what you have?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 11:12 AM
Thanks for the reply. You want me to remove g_navigation.open("$change_request_calendar_view.do?sysparm_changeId=" + g_form.getUniqueValue());"?
My question is: If I remove everything and add:
action.setRedirectURL(current);
How could UI action work to display calendar page? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 01:23 PM
I suggest looking at OOB UI Actions that do the same. From my "Conflict Calendar" UI Action, it has the following:
g_navigation.open("$change_request_calendar_view.do?sysparm_changeId=" + g_form.getUniqueValue());
Seems what you last posted should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 04:15 PM
Not working. Got error: SCRIPT:EXEC Error while running Client Script "GlideScopedScript": ReferenceError: g_navigation is not defined