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
Not applicable

Hi @Vani14

You can add condition in UI Action like current.document_id == 'sys_id';

 

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

Thanks and Regards

Sarthak

 

Vani14
Tera Contributor

i have added the condition as  current.sc_req_item.cat_item == 'sys_id of catalog item'

Community Alums
Not applicable

@Vani14 ,

As you mention you created UI Action on Approval table correct? In approval table we don't have any field called sc_req_item.

We have document_id in approval table.

 

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

Thanks and Regards

Sarthak

@Community Alums  i have added condition as current.document_id == 'sys_id of catalog name' but its not working

Community Alums
Not applicable

Hi @Vani14 ,

I checked please try with this condition 

current.sysapproval == sys_id of catalog name'

 

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

Thanks and Regards

Sarthak