The CreatorCon Call for Content is officially open! Get started here.

UI action button to appear on only one related list

G Balaji
Kilo Guru

Hi,

I've custom UI action(client) button "Copy" on OOB table.  I've a related list on the same table, similar to, a related list that shows the incidents opened for same caller available in incident form. 

Now, this "Copy" UI action button available should be available only on related list not on the incident form. Also, it should be available only in incident related list  and not on problem form.

I tried using following condition but it doesn't seem to work as expected,

current.parent.sys_class_name==incident

current.parent.getTableName()=incident

Any pointers?

Thanks.

 

1 ACCEPTED SOLUTION

Jon Barnes
Kilo Sage

current object won’t be available on a list.

Try using The RP.isRelatedList() function combined with parent.getTableName() to get the effect you want

View solution in original post

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

You use can use "List control" to restrict the UI action on related list.

 

Please use "RP.isOneToMany() || RP.isManyToMany()" in your condition.

 

This will make the condition true when it is used on related list and false when used on a default list view.

 

Regards,

Sachin

Jon Barnes
Kilo Sage

current object won’t be available on a list.

Try using The RP.isRelatedList() function combined with parent.getTableName() to get the effect you want

Inactive_Us1957
Kilo Guru

Hi,

Make sure "List banner button" checkbox is true.

Thanks