Hi
I am trying to fetch the sample odata content from ES5 data source.manifest.png
manifest1.pngdebug.pngcontroller.pngview.png. While running the application , I am getting " initial loading of metadata failed "error. Attached screen shots of neoapp.png my controller, view, manifest and neoapp code attached. Let me know if I need to perform any corrections in my code.
Thanks
Shankar
Request clarification before answering.
Hi SHankar,
Why I asked that question is because the app looks little weird.. Usually when you generate, the odata data source and other stuff will be generated properly. But in your case the data source has destination reference in the URI, which shouldn't have as per my knowledge. Probably you have generated a normal ui5 project and added that code manually?
and one more thing is, if the data source is already in the manifest.json file, then you don';t need to instantiate the odata servivce manually, it's already instantiated and you can use it directly inside the xml view.
What I would suggest you to avoid these errors is to, generate a UI5 worklist templated based app and it asks for odata service, you can provide your service and then it automatically generates the app with a table included in the main view.
PS: Small tip, you can comment to provide more information and answer should be provided only if you have unique solution.
-Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
Thanks for your response. Using Fiori Templates I am able to fetch data. I am trying with UI5 application template where I am manually modifying the manifest.json file.
I tried with below code and the also with the code which is there in my previous screenshot. Tried with commenting controller class also, but still getting the same error.
"dataSources":{
"ES5" :{
"uri":"/sap/opu/odata/iwbep/GWSAMPLE_BASIC/",
"type":"OData",
"settings" : {"odataVersion": "2.0" }
}
},
Thanks Shankar
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.