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

Mike_R
Kilo Patron
Kilo Patron

You should be able to replace gs.getProperty('SysID')  with current.sys_id

sudhir041
Tera Contributor

i tried but it does return a blank page as it is not taking me to the correct page.

Can you post a screenshot of your UI action?

And also a screenshot of the page that you're trying to redirect to (include the URL in the screenshot, you can blur out your instanceName)

sudhir041
Tera Contributor

i want to  navigate to an interceptor which is a part of the  sys_wizard table .

 

sudhir041_1-1670957527359.png