current.canCreate() && !RP.getListControl().isOmitNewButton() && !RP.isRelatedList()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 06:31 AM
May I know why we have used this condition in UI actions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2019 10:01 AM
Hi Pooja,
canRead(), canWrite(), canCreate(), and canDelete()
These four methods can be called on a GlideRecord without any arguments, and each will return a boolean true/false value, indicating whether the record can be read, written to, created, or deleted.
These methods take no arguments, because they apply to the entire record rather than to a given field.
RP.getListControl().isOmitNewButton():
ListProperties function to check isOmitNewButton status
Please mark correct or helpful if this resolves your query
Regards,
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 10:19 AM
what is RP?
how is "RP.getListControl().isOmitNewButton()" used?
how do I hide the "New" button on a list based on role?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 11:01 AM
In UI Action condition enter gs.hasRole('manual_task') or whatever your role will be.