on 06-09-2016 7:18 AM
I am trying to use SAP.M.UPLOADCOLLECTION class to provide upload attachment functionality to a custom SAPUI5/Fiori Application.
I have added the upload collection in my XML file and set the model in my javascript file.
I can navigate to the view, see the upload collection control on the screen and everything looks ok.
When I actually try to upload a file, I get the following error message:
GET https://<myhost>:<myport>/sap/bc/ui5_ui5/ui2/upload/index.html 404 (NOT FOUND).
Unable to find any info regarding this.
Does anyone have any idea if this something to do with my code specifically or something system related (perhaps my UI stack level or an SICF node not activated)?
Let me know if you need anymore info.
Any help would be much appreciated.
Hey Mitchell,
You should set upload url for that control before uploading.
for example:
this.getView().byId("UploadCollection").setUploadUrl("/sap/opu/odata/sap/ZMY_SERVICE/AttachmentSet");
Regards
Ugur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.