cordova - Cloud connector fails to load JSON data on device -
our client has changed system sap , wants app display data via sap interface. decided use sapui5 framework + webide develop app, since provides control variety solid mvc design easy-to-use cloud connectors sap interface.
we have configured connector this:
neo-app.json
{ "welcomefile": "/webapp/index.html", "routes": [ { "path": "/resources", "target": { "type": "service", "name": "sapui5", "entrypath": "/resources" }, "description": "sapui5 resources" }, { "path": "/test-resources", "target": { "type": "service", "name": "sapui5", "entrypath": "/test-resources" }, "description": "sapui5 test resources" }, { "path": "/mynews", "target": { "type": "destination", "name": "mynews_cms", "preferlocal": true } } ], "sendwelcomefileredirect": true } this our test call in component.js:
try { $.get("/mynews/?json=2", function(data, status) { alert("success: " + json.stringify(data)); }).fail(function(arg1) { alert("error: " + json.stringify(arg1)); }); } catch (err) { alert("global error: " + err); } in our webide full json wanted data sap connector api, however, build app , publish on device using hat (android, ios, signed), request fails.
first, alerts {} (empty object), alerts error: {"readystate":0,"status":0,"statustext":"error"}
how can solve issue?
Comments
Post a Comment