how can i make the ui action navigate to a particular page in a table using url
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2022 10:13 AM
i have a ui action and once the user clicks on the ui action i want it to navigate to a particular page having options.
Currently i am using the script as below but i wish to replace the sys_id of the record from the url and dynamically without sys_id i want the ui action to take me to that particular page.
var url2 = 'wizard.do?sys_target=&sysparm_wizard=sysverb_new&sysparm_parent=' + gs.getProperty('SysID') + '&sysparm_stack=change_request_list.do';
action.setRedirectURL(url2);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2022 10:41 AM
I see what's happening. sysparm_parent= needs to be the sys_id of the interceptor record, not the sys_id of the "current" record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2022 11:03 AM
so can there be a way to navigate without hardcoding the sys_id?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2022 11:11 AM
The way you have it setup through system property is good.
But change your system property to something more descriptive and not "SysID".
Such as change.intercepter.sys_id and then retrieve it using gs.getProperty('change.intercepter.sys_id')