-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sap.m.upload.UploadSet incompleteItem setSelectItem does not work #4026
Comments
Hello @cbsmerveguel , I have prepared a small test page that shows the first issue with Best regards, |
@dimovpetar thank you for the test page example, that is accurately displays our issue. FYI: sap.m.upload.UploadSet aggregations do not get an update as uploadState property shifts Thanks again! |
Hello @cbsmerveguel , I've created an internal incident DINC0128813. The status of the issue will be updated here in GitHub. Regards, |
Hi Devs, From the details and scenario above i can understand the goal is to move the incomplete item to items manually as per need. The uploadset control moves the items from incomplete list to complete list only once upload has progressed. if it has to be moved manually either u can use insertItem or addItem API on the uploadSet control by passing in the incomplete item so the control handles moving it from incomplete list to items list. Then the setselected works on the moved item. This approach should handle the above use-case please let us know otherwise. Regards, |
Hello, I'm a beginner in FIORI and I have a problem with the upload. As soon as the user selects the file, it downloads but goes through removeIncompleteItem and clears the screen, removing the file that the user uploaded. How can I make it so that after the upload the file remains on the screen? I noticed that if I skip removeIncompleteItem the file remains on the screen the way I would like it to. Thank you for all your help. |
Hello @marcoss-html , Please create separate issue for your problem. Best regards, |
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: