cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to get the data through ODataModel in WEBIDE

SatyaKudumula
Explorer
0 Kudos

Hello Experts,

I am using Local WEBIDE and I have created the SAPUI5 application by select "Project from Template", configured destination in manifest file and neo-app.json files and trying to call OData service through ODataModel in onInIt() method.but not able to get the backend data.

How can I get destination service url into controller ?

Can anyone help me on this.

Below is the code:

Controller.JS

Manifest.json :


neo-app.json

Destination file:

Thanks,

Satya

Accepted Solutions (0)

Answers (2)

Answers (2)

SatyaKudumula
Explorer
0 Kudos

Hi Jun,

Var oModel =  new sap.ui.model.odata.ODataModel("URL");

Even i tried with above also but am unable to get the data from backend.

How we can get service url from destination?

Please suggest me if am wrong.

Thanks and Regards,

Satya

SatyaKudumula
Explorer
0 Kudos

Hi,

Please help me how can I get serviceURL from destination and how can I pass that serviceURL to Models for getting the data from back-end, even I am trying for CRUD operations in UI5 app by using WEBIDE.

In eclipse I can able to do CRUD operations successfully but in WEBIDE not able to do CRUD operations.

Thanks,

Satya

Former Member
0 Kudos

Hi Satya,

Take a look at the link SAPUI5 Explored

It may solve your issue.

Regards,
Srinivasan

SatyaKudumula
Explorer
0 Kudos

Hi All,

Kindly help me on above .

Thanks,

Satya

junwu
Active Contributor
0 Kudos

what example you are following?

this.oDataModel where this model is created?