UI Action onClick not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 09:05 AM
I created a UI Action for a custom table to generate a printable version of a form. It works just fine. I tried using the exact same configuration for a UI Action for another table. The only difference is the table name, but this one doesn't do anything at all. From looking in Chrome's developer tools, I see that the printPreview function isn't being recognized.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 09:09 AM
Hi @MC1,
Make sure you are passing the correct parameter.
Also, is it possible or share the both UI actions scripts.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 09:14 AM
The parameter is correct. I printed out the value of rowSysId and it is the right sys_id. The UI Action is exactly the same as the working one, with the only difference being the table name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 09:10 AM
Hello @MC1
Remove the rowsysid from parameter.
you can get sys_id inside the function from
var sysid = current.sys_id;
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 09:15 AM
I tried that but it doesn't work.