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

Virendra K
Kilo Sage

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

7 REPLIES 7

Mark Manders
Mega Patron

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

Hi @Mark Manders 

 

How we could create 2 button on different 2 tabs which are using same table ?

Also, how to use DOM manipulation?

 

Regards,

Virendra 

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