How to show ui action only for one catalog item

Vani14
Tera Contributor

we have created approve ui action button for approval table and that button has to be displayed only for one catalog item

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Vani14 ,

Please check 

current.sysapproval.cat_item == 'sys_id of cat item'

 

Please mark my answer correct and helpful if this works for you.

Thanks and Regards

Sarthak

View solution in original post

17 REPLIES 17

@Community Alums  it is not  working

Community Alums
Not applicable

Hi @Vani14 ,

Please check 

current.sysapproval.cat_item == 'sys_id of cat item'

 

Please mark my answer correct and helpful if this works for you.

Thanks and Regards

Sarthak

@Community Alums 
this condition is working but we need to add double quotes and also it is working only for the form button. for the list context menu, this condition is not working
current.sysapproval.cat_item == "sys_id of cat item"

@Community Alums this condition is working but we need to add double quotes and also it is working only for the form button. for the list context menu, this condition is not working
current.sysapproval.cat_item == "sys_id of cat item"

could you please help me on this

Taha El alami
Kilo Sage
Kilo Sage

Hi @Vani14 you can use this like a condition for your custom ui action 

just replace the cat_item_sys_id by your catalog item sys id

 

gs.getProperty("glide.servlet.uri") + gs.action.getGlideURI().indexOf('cat_item_sys_id') != -1

 

  

Please mark my answer correct and helpful if this works for you.

Thanks