SAPUI5 bugs & workaround

Victor Ho
SAPUI5 best pratices
1 min readMay 14, 2019

UploadCollection upload the old attachment again

Issue:

App layout: Worklist view > Details view

In details view, the app create new entity with attachment upload using sap.m.UploadCollection

In the same session, the UploadCollection is used to upload again. It upload all old attachment of the last time it was used, even though the UI does not display the old items. Which is not correct.

Solution:

in “uploadComplete” event of UploadCollection, clean all the “false” pending upload items by using:

oUploadCollection.removeAllAggregation(“item”);

--

--

Victor Ho
SAPUI5 best pratices

Utilize technology to help people have better life.