Hide Delete Button in Fascial period form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2023 04:40 AM
I have a requirement to Hide the Delete Button On the fiscal_periods form for a few role users.
i have tried with ACL process , but is making all the field read-only for those role user,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2023 05:08 AM
Hi @VSN
open the UI action of that button and in condition field add condition which you want to add.
below i attached screenshot for your reference.
Regards,
Ranjit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2023 05:44 AM
@Ranjit Nimbalka thanks for reply.
that uiAction is in Global table,
and i need to hide that delete button for program_manager/project_manager roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2023 06:36 AM - edited 07-28-2023 06:39 AM
Open the delete button (global one) and write the name of your table (eg incident) in the table name column and do an "insert and Stay".
This will create a new DELETE button just for your table and the global one will now not show on your table. This is called over riding the ui action.
Now any change you do here will be limited to your table only
Use the "condition" on the ui action to decide when to show/hide.
add (!gs.hasRole('program_manager')|| gs.hasRole('project_manager')).
Regards,
Ranjit Nimbalkar