- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 10:52 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 07:47 PM
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 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 07:47 PM
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 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 09:03 PM
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