Skip to Content
0

FileUploader not working from Launchpad on Fiori Client

Aug 17, 2017 at 08:30 AM

57

avatar image

Hello,

The problem I have, is that I want to use the sap.ui.unified.FileUploader on a mobile application and call the app from the Fiori Client Mobile App pointing to an Launchpad.

It works fine if I point to a Standalone URL, the mobile opens an "interface" for me to choose a file from gallery or take a new photo. The problem is when I point to a Launchpad and the FileUploader component don't open the interface to select a file.

I read that Launchpad doesn't load the sap.ui.unified and sap.ui.commons libraries, but I include them jQuery.sap.require("sap.ui.unified.FileUploader"), and when I create the component var oUploader = new sap.ui.unified.FileUploader()

And after that, I do an alert(oUploader), it returns the component properly and I can access his methods, also if the library wouldn't load properly, it would tell me that sap.ui.unified.FileUploader isn't a constructor.

And the best thing, I saw that this error don't happens on Iphone, only on Android.

Any advices?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Cristian Babei Aug 31, 2017 at 12:22 PM
0

Hello,

Solved it, just in case anyone ever have this problem:

Seems that in the Fiori client, if you are pointing to an FLP, then on the Tile that points to your App, you must use a semantic object navigation, and not a normal URL like : /sap/bc/ui5_ui5/sap/zxxxxx/index.html

So you must create a assignation of destiny and point the tile to it, so the app, opens inside the launchpad and not on a new "window", cuz in a browser it works fine, but in the Fiori client, it doesn't.

Share
10 |10000 characters needed characters left characters exceeded