openui5
openui5 copied to clipboard
Make only some elements in List deletable
OpenUI5 version: 1.42.7 (probably all versions)
Browser/version (+device/version): all
Right now it is not possible to enable "delete" for just a few list items. Instead an "all or nothing" approach is implemented: You set the mode of the list and not of a single list item, thus all or none of the items are deletable.
In some scenarios this approach is bad (imo): You have a list of things and a user wants to delete things. He should only be able to delete things that were created by him. It would be so much easier if the user didn't see the delete button for list items not created by him. But right now he sees it, fires the request, gets a backend response ("You are not allowed to delete the thing") and so on.
Hi @mschleeweiss,
I see the sample at https://sapui5.hana.ondemand.com/explored.html#/sample/sap.m.sample.ListDeletion/preview allows to delete single list items. Does this help? If not, please provide us more details.
Thanks, Diana
Hi @kineticjs ,
unfortunately this does not help.
I want to achieve something like this:
Hi @mschleeweiss,
Thank you for this input. It looks like a valid feature request and I communicated it to the respective PO.
Thanks, Diana
Hello @mschleeweiss, Thank you for sharing your enhancement proposal. I have found that the same feature is already requested earlier and is put into the pipeline (item #1904). You can check its status on GitHub. Regards, Diana
Internal requirement is FIORITECHP1-23873