Hide UI Action from the list view but not the related list

ahmed21
Kilo Expert

Hello Everyone, 

I need your help with a specific requirement which is:

 

We have an UI action (New) that appears in two places for the (sc_task) table,

 

First from the request item related list.

find_real_file.png

Which is fine. 

Second in the list view of the (sc_task)

 

find_real_file.png

Which not wanted to appear. 

 

How can I hide the UI action (New) from the List view of sc_task but not from the related list of the request item form?

 

Thank you, 

 

 

1 ACCEPTED SOLUTION

dvp
Mega Sage
Mega Sage

Navigate to sc_task.LIST

Configure List control

and Make Omit new button to TRUE

This will remove the new button from sc_task table but will keep the button in related list

View solution in original post

9 REPLIES 9

Trupti6
Tera Expert

just add the condition in the ui action: Append this

 

!(RP.isRelatedList() && current.getTableName()=='ADDTHETABLEYOUNEEDTOREMOVETHISFROM')

Thank you Trupti, 

I'm not trying to exclude the hole table out of the UI action, I'm just trying to make the UI action (New) to appear in the related list but not from the List view of the table ( sc_task)

Thank you very much 

dvp
Mega Sage
Mega Sage

Navigate to sc_task.LIST

Configure List control

and Make Omit new button to TRUE

This will remove the new button from sc_task table but will keep the button in related list

How can we do this for a custom ui action?