cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Restrict delete access on custom Fiori app

rthoodi
Active Participant
0 Kudos
463

Hello experts,

I have enabled the 'Delete' button in a existing custom Fiori application using the following annotation in a CDS view:

 

@ObjectModel: { deleteEnabled: true }

This automatically added a radio button for each record in Fiori app. However, I had to implement a UI adaptation to allow users to select multiple records (switching from radio buttons to checkboxes) for deletion.

Currently, all users with access to the app can delete records. I need to know if it's possible to disable the 'Delete' button based on user roles or security permissions. We want to enable the delete functionality to only specific users.

What are some other ways I can achieve this restriction?

Thank you!

Rama

Accepted Solutions (0)

Answers (1)

Answers (1)

Virinchy
Active Contributor
0 Kudos

Can you try with annotation @ui.DeleteHidden and apply it based on the security role

Please refer  'Visibility of the Delete and Create Buttons' section in  Fiori elements learning journey

or the 'Dynamic CRUD Restrictions' section in the Fiori elements showcase