how can i make the ui action navigate to a particular page in a table using url

sudhir041
Tera Contributor

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);

7 REPLIES 7

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.

 

sudhir041
Tera Contributor

so can there be a way to navigate without hardcoding the sys_id?

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')