How do I add a UI action button, to a specific related list?

rafas_10
Tera Guru

Hi everyone!

 

How do I add a custom button to a specific related list?

What I mean is the following - Watch the image bellow:

rafas_10_0-1716292879590.png

How do I add a custom button beside the New and Edit button?

 

The UI action I have is:

rafas_10_1-1716292950683.png

How do I achieve this feature?

Thanks!

1 ACCEPTED SOLUTION
4 REPLIES 4

Anurag Tripathi
Mega Patron
Mega Patron

HI,

Put the below in your condition 

RP.isRelatedList() 

And Check the box that says 'List banner button'

-Anurag

Hi @Anurag Tripathi ,

The selection of the checkbox makes it appear, but it is in the wrong related list. 

1º How do I make it appear in the correct Related list

2º When I click the button it appears "No records selected". The action I have works perfectly because I tested it when I "check" the option "Form button" and with that button it works. Why doesn't it work in the related list?

For your second point, You may have to create a new button for that. A button which is suppose dto work on form will not work on related list as is.

 

For your first point You can add that also in the condition of the new ui action, something like below

RP.isRelatedList()  && current.getTableName() =='table name of related list table' && parent.getTableName()=='table name of the parent where you add this related list'

 

 

-Anurag