Ui action button

gokul_0955
Tera Contributor

Hi All,

I need to create a button on my custom table form which redirects to one of my record producer which i needs to achieve using  ui action.

 

Thank you in Advance

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

Hi @gokul_0955 

Create an UI Action on your custom table by navigating to System Definition -> UI Actions then Click on New Button. In the Page opened, fill in the name, and select your custom table and set the Form button, Form context button and  Client check boxs to true, and in the onClick field fill with a function name like openRecordProducerURL.

 

Then in the Script field use the following script,

 

function openRecordProducerURL(){

g_navigation.open('YOUR URL FOR THE RECORD PRODUCER');

}

 

Please mark my answer helpful and accept as solution if it helped you 👍

Thanks,
Anvesh

View solution in original post

2 REPLIES 2

AnveshKumar M
Tera Sage
Tera Sage

Hi @gokul_0955 

Create an UI Action on your custom table by navigating to System Definition -> UI Actions then Click on New Button. In the Page opened, fill in the name, and select your custom table and set the Form button, Form context button and  Client check boxs to true, and in the onClick field fill with a function name like openRecordProducerURL.

 

Then in the Script field use the following script,

 

function openRecordProducerURL(){

g_navigation.open('YOUR URL FOR THE RECORD PRODUCER');

}

 

Please mark my answer helpful and accept as solution if it helped you 👍

Thanks,
Anvesh

Danish Bhairag2
Tera Sage
Tera Sage

Hi @gokul_0955 ,

 

Please use the below code to achieve your requirement.

 

var str = 'com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=1ff40761d7612100b7490ee60e610347';//replace sysID of ur record producer pls

action.setRedirectURL(str);

 

Please mark my answer helpful & accepted if it helps you resolve your request.

 

Thanks,

Danish