on 05-20-2016 9:53 AM
hi, i am new in SAPUI5. for this case i want to show data from Odata net waver in the eclipse application for SAPUI5, but i got a problem when i trying to run program.
this is sctructure tree from eclipse
and this is code from controller:
onInit: function() {
var oModel = new sap.ui.model.odata.ODataModel
("http://[hostname]:8000/sap/opu/odata/SAP/ZEMP_SRV/EmployeeSet", true, "basisadm", "passw0rd" );
oModel.attachRequestSent(function() {
console.log("Request sent");
//etc
});
oModel.attachRequestCompleted(function() {
console.log("Request completed");
//etc
});
oModel.attachRequestFailed(function() {
console.log("Request failed");
//etc
});
sap.ui.getCore().setModel(oModel);
},
i get this error from mozilla firefox when program running.
how i solve this and whats i missing?
Thanks.
if you have your gateway server, just deploy and run. don't try hard, waste time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry for late response. this link helpful to solve the problem
SAPUI5 - CRUD Operations Part 3 - Creating our view - YouTube
Hi,
for those of you who still searching for a solution:
Use App Router to solve CORS
Use Proxy Server to solve CORS
(works locally and in Cloud)
Cheers,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Fo testing in local only, you can use CORS pluging CORS Everywhere :: Modules pour Firefox
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.