on 07-09-2015 12:17 AM
Hi,
I deployed a fiori app in HCP and it runs fine.I created a tile for the app in the fiori launchpad site.When i open the tile it throws a dump "Could not open app.Try again later".
As per my understanding the component name,URL,application name are all correct.The error log in the chrome console is as below:
2015-07-08 16:05:18 Application initialization failed due to an Exception:
Error: found in negative cache: 'Z_Material_List_App/Component.js' from /sap/fiori/zmateriallistapp/Component.js: Error: failed to load 'f_fiori/MyRouter.js' from /sap/ui5/1/resources/fisker_fiori/MyRouter.
Please guide.
Regards
Radhika
Hi,
The OData service URL declared in your application’s Component.js should refer to a destination file deployed on your HCP account.
serviceUrl: "/destinations/<destination name>/<relative service end point URL>"
The path should be mapped in the applications neo-app.json:
{
"path": "/destinations/<destination name>",
"target": {
"type": "destination",
"name": "<destination name>"
},
"description": "Some description"
},
After the application is running in the Web IDE you should add the module path of your application ("zmateriallistapp") to the OData service URL
To “proxify” the calls when the application is running in the fiori Launchpad site
serviceUrl: jQuery.sap.getModulePath("<application name>") + "/destinations/<destination name>/<relative service end point URL>"
Please look at the bellow configuration for the "employee" application
Let me know if this works for you,
Ido
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this case - the service end point is - http://services.odata.org/V3/Northwind/Northwind.svc
Your destination file named northwind refers to - http://services.odata.org
The service URL in the Component.js should refer to the remaining (relative ) path, like this:
serviceUrl: jQuery.sap.getModulePath(<application name>) + "/destinations/northwind/V3/Northwind/Northwind.svc/"
(notice - once you add the modulePath it will only work when running from FLP)
In the neo-app.json:
{
"path": "/destinations/northwind ,
"target": {
"type": "destination",
"name": northwind
},
"description": "Some description"
},
Hi Ido,
Is there any document i can follow to create the destination file.
Below is the OData URL:
Regards
Radhika
Sure, lets continue via email. Ill post the final resolution here.
I managed to deploy to register the application directly from Web ide.Now the application launches,but still data is not visible asit is trying to call the Odata from the cloud portal URL rather than gatewya URL
Please advise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.