on 2025 Feb 21 3:06 AM
Hello experts,
I have enabled the 'Delete' button in a existing custom Fiori application using the following annotation in a CDS view:
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.