on 04-06-2018 10:04 AM
Hi Experts,
I am trying to consume the odata service in my application, when i ran it i am getting the below error when i ran it locally and i am confused why it is calling "Webide Testing"
When i test the odata service in browser its working fine and the data is coming
Can someone help me to fix this issue ?
KR,
Anil
There is a mistake in your code. please correct below part.
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "table.table.i18n.i18n"
}
},
"": {
"dataSource": "ZBPE_MAINT_BPE_SRV",
"preload": true
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do you have a manifest.json file? what is the model destination maintained in your local version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
Below is the manifest.json file code
https://answers.sap.com/storage/attachments/128670-manifest.txt
and below is the local metadata file metadata.txt
KR,
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Included destinations in neo-app.json file?
Regards,
Gururaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
Any other inputs ?
KR,
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What are the errors in the Console tab of the developer console? Are you getting the errors when testing from Web IDE or testing the app locally? In case of local testing you will have to remove the destination reference in the OData service URL within the app descriptor file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply @Saurabh.
I am running my index.html file locally(Run) and below is the error when i ran it
Can you please let me know what should be modified in the manifest.json file ? attached the manifest file and also as i mentioned earlier when i ran the service through browser i am getting the data.
KR,
Anil
Thanks for the response Saurabh
i tried as per your suggestion but still we are getting the same issue .:(
"dataSources": {
"ZBPE_MAINT_BPE_SRV": {
"uri": "/sap/opu/odata/ZBPE_MAINT_BPE_SRV/",
"type": "OData",
"settings": {
"odataVersion": "2.0",
"localUri": "localService/metadata.xml"
}
}
}
},
KR,
Anil
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
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.