You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using UploadSet with "incompleteItem" aggregation due to the fact that we are processing the uploaded documents first and set them as "Complete" at a later point. As the processing gets finished, we set the incompleteItem's uploadState as "sap.m.UploadState.Complete". Right after this completion, we required to select the the first item that is completed in the "incompleteItem" list. However, as we tried to apply this functionality, we got to see that the "setSelectedItem" method throws the below error:
sap.m.upload.UploadSet 1.120.8
As we debugged the issue and as can be seen in the method "_getUploadSetItemById"; this.getItems() collects the items only from "items" aggregation and it is empty. Ideally, we would expect our item to be selectable either as a incompleteItem or an actual item regardless of its uploadState. Therefore, we think this.getItems() should also support the array of incompleteItems list. We also would expect that, if an incompleteItem gets an update to its uploadState as "sap.m.UploadState.Complete", then it should be added into the "items" aggregation. We tried to manually remove the item from the "incompleteItem" aggregation and add/insert it into the "items" aggregation but it didn't work, because the object id was already used and removed.
We are asking your support and expertise on this matter,
Thanks in advance,
Best,
Merve
The text was updated successfully, but these errors were encountered:
I have prepared a small test page that shows the first issue with setSelectedItemhttps://stackblitz.com/edit/vitejs-vite-tvzjnv?file=index.js. Please check if this is what you have meant.
For the second issue about upload state, please open another incident.
Hi gurus,
We are using UploadSet with "incompleteItem" aggregation due to the fact that we are processing the uploaded documents first and set them as "Complete" at a later point. As the processing gets finished, we set the incompleteItem's uploadState as "sap.m.UploadState.Complete". Right after this completion, we required to select the the first item that is completed in the "incompleteItem" list. However, as we tried to apply this functionality, we got to see that the "setSelectedItem" method throws the below error:
Code Snap:
sap.m.upload.UploadSet 1.120.8
As we debugged the issue and as can be seen in the method "_getUploadSetItemById"; this.getItems() collects the items only from "items" aggregation and it is empty. Ideally, we would expect our item to be selectable either as a incompleteItem or an actual item regardless of its uploadState. Therefore, we think this.getItems() should also support the array of incompleteItems list. We also would expect that, if an incompleteItem gets an update to its uploadState as "sap.m.UploadState.Complete", then it should be added into the "items" aggregation. We tried to manually remove the item from the "incompleteItem" aggregation and add/insert it into the "items" aggregation but it didn't work, because the object id was already used and removed.
We are asking your support and expertise on this matter,
Thanks in advance,
Best,
Merve
The text was updated successfully, but these errors were encountered: