How to Remove the Delete Action from Stockroom Records (alm_stockroom) in Hardware Asset Workspace?

Shiv Choudhary
Tera Contributor

Stockroom delete button remove.png

 

We have a requirement to remove the "Delete" action from Stockroom records (alm_stockroom) in Hardware Asset Workspace so that users are not able to delete stockrooms from the workspace UI.

Currently, the Delete option appears under the three-dot menu on the Stockroom form in Hardware Asset Workspace.

Investigation performed:

  • Checked UI Actions on the alm_stockroom table.
  • Searched for Delete-related UI Actions and Workspace Actions.
  • Reviewed Action Assignments / Declarative Actions.
  • Could not identify any specific UI Action or configuration associated with the Delete option on the alm_stockroom record.

Requirement: We would like to completely hide or remove the Delete option from the Hardware Asset Workspace Stockroom form.

Questions:

  1. From where is this Delete action generated in Hardware Asset Workspace?
  2. Is this action controlled by a Declarative Action, UX Form Action, Workspace configuration, or ACL?
  3. What is the recommended approach to remove or hide the Delete option from the Stockroom form?
  4. Has anyone implemented a similar requirement for alm_stockroom records in Hardware Asset Workspace?

Any guidance on how to identify the source of this action and safely remove it would be greatly appreciated.

Thank you.

2 REPLIES 2

DeanB9201927820
Mega Sage

You'll need to adjust the Delete 'Global' UI action (sys_ui_action) and add a condition to hide it when the table = alm_stockroom

E.g. current.getTableName() != 'alm_stockroom'

DeanB9201927820_0-1787067058791.png

 


If the intention is to preserve the Delete behaviour from UI16, you'll need to create a specific UI action for the alm_stockroom table and ensure you to set it as active for workspace. 

DeanB9201927820
Mega Sage

Alternatively you can adjust the delete ACL for the table as OOB the condition checks if the user can delete. But if the intention is to allow deletion via UI16 and not Workspace, I would use the approach above.