How to override a task UI action with a scoped UI action?

F_8
Tera Contributor

I have this scoped app, and have made a table with a UI action. There is a UI action that is made for the task table with the exact same name, 'Assign to me'. As there is a field in my table which inherits from the task table, that means I have two 'Assign to me' UI actions that appear in the context menu of the table list. I obviously don't want to touch the OOTB UI action which is on the task table, but how do I prevent the task tables UI action from displaying in my context menu and only the UI action that I made?

 

find_real_file.png

 

 

I have tried putting the task tables UI action in the overrides field of the UI action that i made, but that is counter-intuitive as it hides the UI action that i made whilst showing the task tables UI action.

7 REPLIES 7

Michael Fry1
Kilo Patron

Can you add something like: current.getTableName() != "zzz" <-- replace zzz with table name.

Shweta KHAJAPUR
Tera Guru

Hi,

 

In condition field of OOB UI action  add condition like

current.getTableName()!='Your custom table name'

F_8
Tera Contributor

Thanks Michael and Shweta, but I tried that, and it still appears in the list context menu. I don't think using 'current' works in list view, only in forms. When I do select the task tables UI action, it does say 'Security does not allow the execution of that action against the specified record'. Which is fine, but I don't want that UI action to appear on the list context menu at all. Any other ideas please?