Dear Experts,
I tried to test an gateway service, which is working fine in chrome browser and i get the records. Almost all oData options like $filter, $format work.
But, when i tried to create an application and try to source that model through below code, it doesn't work.
Please let me know, where does it go wrong.
Code:
var oGwModel = new sap.ui.model.odata.oDataModel("http://<server>:8000/sap/opu/odata/sap/<service name>",false,'userid','password');
Error that i get in Chrome browser on F12:
My index.html file content:
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
<script src="resources/sap-ui-core.js" | |||
id="sap-ui-bootstrap" | |||
data-sap-ui-libs="sap.m,sap.me,sap.ui.commons,sap.ui.ux3,sap.ui.table" | |||
data-sap-ui-theme="sap_bluecrystal"> | |||
</script> | |||
<!-- only load the mobile lib "sap.m" and the "sap_mvi" theme --> |
<script> | |||
sap.ui.localResources("<Project name>"); |
Thanks and Regards.