openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Make only some elements in List deletable

Open mschleeweiss opened this issue 7 years ago • 5 comments

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.

mschleeweiss avatar Apr 20 '17 14:04 mschleeweiss

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

kineticjs avatar Apr 20 '17 18:04 kineticjs

Hi @kineticjs ,

unfortunately this does not help.

I want to achieve something like this:

image

mschleeweiss avatar Apr 21 '17 07:04 mschleeweiss

Hi @mschleeweiss,

Thank you for this input. It looks like a valid feature request and I communicated it to the respective PO.

Thanks, Diana

kineticjs avatar Apr 21 '17 15:04 kineticjs

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

kineticjs avatar May 02 '17 11:05 kineticjs

Internal requirement is FIORITECHP1-23873

simlin avatar Mar 13 '24 12:03 simlin