UI Action Condition for custom table state filed choices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 08:22 AM
Hi,
I have an requirement to make it UI Action available when state value is 17,18 &19 and user is member of the "Network" and "Software" groups. I have written the below ui action condition, but it's not working as expected. Please help & correct me on this?
(current.state == 17 || current.state == 18 ||current.state == 19) &&(gs.getUser().isMemberOf('Network') || gs.getUser().isMemberOf('Software'))
Thanks In advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 08:33 AM
Hi @Rajesh Bandila,
The conditions seems to be fine. What is the expected behavior here?
Try with -
(current.state == '17' || current.state == '18' || current.state == '19') && (gs.getUser().isMemberOf('Network_group_sys_id') || gs.getUser().isMemberOf('Software_group_sys_id'))
Thanks,
Sagar Pagar