Condition based on system property
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 05:57 AM
Hi,
I found problem with condition in UI Actions. I need to show form button only when Task is assigned to group which is one of the groups defined in system property. Is there any way how to make script codition of UI Actions or I'll have to make it different way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 06:00 AM
Hi there,
An example from an out-of-the-box UI Action condition:
gs.getProperty('glide.ui.update_is_submit') != 'true'
So gs.getProperty will do the trick for you. Something like current.assignment_group == gs.getProperty('your_group_sys_property'). <-- note assignment_group is a sys_id.
Kind regards,
Mark
---
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019 06:06 AM
Hi Mark,
This will work only with one group in sys_property but I have string with groups which I need to parse them first.