How to prevent UI actions from appearing in related lists

bonsai
Mega Sage

I've implemented a UI action that appears as a button in the upper right corner of the list screen.

The button also appears in related lists that display the same table.

I'd like to hide it only in the related lists. Is there a good way to do this?

I'm considering changing the view only for the list screen and controlling the display of the UI action according to the view, but I'd appreciate it if you could tell me if there's another way.

The conditional field for the UI action seems like it could be useful, but do you have any good suggestions?

1 ACCEPTED SOLUTION

Philippe Casidy
Tera Guru

Hi @bonsai ,

 

You may add a condition like !RP.isRelatedList() in your UI Action condition.

 

You can check for some examples:

/sys_ui_action_list.do?sysparm_query=conditionLIKERP.isRelatedList()&sysparm_view=

 

Please let me know how it works for you

View solution in original post

1 REPLY 1

Philippe Casidy
Tera Guru

Hi @bonsai ,

 

You may add a condition like !RP.isRelatedList() in your UI Action condition.

 

You can check for some examples:

/sys_ui_action_list.do?sysparm_query=conditionLIKERP.isRelatedList()&sysparm_view=

 

Please let me know how it works for you