How to get the name/ ID of the specific Related list tab using script in UI Action ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 05:17 AM
Hi All,
I want to check Related list tab name or ID in the script. UI Action button is referring to 1 table. While working, its should execute as per the tab selection. So I need to check tab name in the script like if "A" tab is active then it should only go the relevant code and export the data.
How I could fetch Related List tab name using script ?
Regards,
Virendra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 12:10 AM
I think you need to go back to the drawing board and start with the requirement. And from there build a valid solution.
It doesn't make sense to export certain data based on if it is on the screen or not, especially not when it's a related list.
It would make more sense to have two buttons or links for it. DOM manipulation will be needed to do it in any other way and that is highly advised against. And that also won't work for workspaces.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2025 11:49 PM
How we could create 2 button on different 2 tabs which are using same table ?
Also, how to use DOM manipulation?
Regards,
Virendra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 12:22 AM
About DOM: just don't even start with that.
And you want to export data from the form itself, right? So you can just create two buttons. One for related list a and one for related list b. But the best solution is to go back to the drawing board with the requirement and check for a proper solution.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark