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

F_8
Tera Contributor

Hi Shweta, I have seen this page before but it didn't work. However, it worked in a specific circumstance: Before, the tasks tables UI action was named 'Assign to me' and the 'action name' field was empty. So I assumed it should work if I make my scoped UI action's 'action name' empty, but that removed the scoped UI action from the context menu. I tested this by logging in the script. Then I tried giving the same 'action name' to both my scoped UI action and the task tables UI action. This worked, however, this still meant I had to modify an out of scope UI action. Is there a reason why just having the same 'name' would not make it work despite saying it should work in the link you provided. I am working in kingston by the way, and the kingston version of the link you sent me is exactly the same.

Shweta KHAJAPUR
Tera Guru

Can you share the screenshot of your UI action.

F_8
Tera Contributor

This is the case when it works:

find_real_file.png

and

find_real_file.png

But it doesn't work if i leave the 'action name' empty