cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori like app not working from Fiorilaunchpad

gopi_nidjelli2
Participant
0 Kudos

Hi All,

    I developed the app based on the tutorial http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8022ac87-1f60-3110-5383-fa68a91d7f8b&override...

The apps works fine when run on the browser. But when I add it as tile in the fiori launchpad and run, it doesn't display any data. When i debugged the browser i see the below error.

https://mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/model/mock.json 404 (NOT FOUND)

https://mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/i18n/messageBundle_en.properties 404 (NOT FOUND)

https://mycompany.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/i18n/messageBundle.properties 404 (NOT FOUND)

Appreciate your help.

thanks,

Gopi

Accepted Solutions (1)

Accepted Solutions (1)

gopi_nidjelli2
Participant
0 Kudos

Resolved.

Instead of using "model/mock.json" use the full path "sap/bc/ui5_ui5/sap/zfiorilikeapp/model/mock.json" in the component.js

Thanks

Gopi

Jayakrishnan
Active Participant
0 Kudos

This message was moderated.

Answers (1)

Answers (1)

kedarT
Active Contributor
0 Kudos

Hi Gopi,

Did you import the any Project(ex: myFiori0 or myFiori10) from the Zip folder or have copy pasted the code.

If you have copy-pasted the code from there in the Project folder there is a folder called Model and i18n which is missing in your project.

Instead import the files from project folders(ex: myFiori10) into your project

Hope this helps.

gopi_nidjelli2
Participant
0 Kudos

Hi Kedar,    The app is working correctly when run from browser. This issue only happens when its run from Fiori launchpad. Also i don't see any issues with the folder structure.

kedarT
Active Contributor
0 Kudos

Try this:

In index.html load the resources for Model and i18n using

sap.ui.localResources("Model")

sap.ui.localResources("i18n")

Hope this helps

Former Member
0 Kudos

Kedar Tingikar wrote:

Try this:

In index.html load the resources for Model and i18n using

sap.ui.localResources("Model")

sap.ui.localResources("i18n")

Hope this helps

Your solution is the better one because it works also in the local Eclipse Environment. Thank you!