UploadCollection: fileDeleted event not fire if instantUpload=false (follow-up)
OpenUI5 version: 1.44.9
Browser/version (+device/version): Chrome
Any other tested browsers/devices(OK/FAIL): -
URL (minimal example if possible): -
User/password (if required and possible - do not post any confidential information here): -
Steps to reproduce the problem:
- Please see https://github.com/SAP/openui5/issues/645 and https://github.com/SAP/openui5/issues/1152
- The use case: Given an UploadCollection with
instantUpload = false. This UploadCollection is bound to the OData Entity Set, let's say "Documents". The user clicks on the delete button, so the file should be removed not only from the UI, but also from backend. The developer should have some possibility to achieve this.
What is the expected result?
I already read the discussions I mentioned above about the feature enhancement, but it seems that there is no action in this area since already two years and I don't really understood the reasons, why the event can't be fired in the described scenario (is it not just the if-statement?). Even more, from my point of view this should belong to the basic functionality of the control. So, because of these reasons and due to the fact, that I need this functionality in my current project :), I would like to ask you, whether you have already a timeline when this enhancement will see the light?
What happens instead?
Nothing
Any other information? (attach screenshot if possible)
Hi @larsilus,
Thank you for this input. I pinged the product owner of sap.m.UploadCollection for the status of this feature request.
Thanks, Diana
Hi @larsilus
I have created internal incident with number: 1770259682
Kind Regards, Gery
Hi @larsilus,
Thank you for this input. We're aware of that this feature was required in the past already. The feature hasn't been implemented so far. The requirement has been addressed to the design responsible (he is currently out of office, expected to be back on May 29).
Best Regards, Petr
Hi @larsilus,
In the meanwhile, could you please confirm your requirement is just the same event as in the Instant Upload case? Or do you expect something more? Thank you.
Best Regards, Petr
Hi @larsilus,
Could you please confirm an event like "fileRemoved" (w/o an ID of file that was removed) meets your requirements? Or do you expect something more? Thank you.
Best Regards, Petr
Hi @larsilus,
A BLI to implement the mentioned event will be created. Execution follows according to the priority set by the PO. Thank you for your contribution.
Best Regards, Petr
Hi @PetrStribrny,
sorry for the late response!
I'm not sure, what you mean if you speak about "ID of the file". The idea is, that if the UploadCollection is bound to some OData Entity Collection and I click on the delete button, the developer should be able to delete this file (= entity) on the backend. For that he/she would need the corresponding entity id.
Best regards, Lars
Hi Lars,
Thanks for the update.
If I speak about an ID of the deleted/removed file, I mean any ID, GUID, OData-EntityId or anything that identifies the file unequivocally. I'm using term "delete" in the next context, but keep in mind, the name of the event hasn't been defined yet. The current proposal is following:
- as soon as the user clicks delete button, the the application is notified via an event;
- the event doesn't identify which file has been deleted;
- the application needs to look up the aggregation items and build own delta to know which file has been deleted. I believe, even if you might expect another approach, with this one your goal could be achieved. Feel free to let me know in case of any doubts.
Best Regards, Petr