Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3668

How to read the odata result in sapui5

$
0
0

Dear Experts,

 

I am new to the XML Views , and stuck in one place.

 

Currently I am doing an Master Details Fiori Application and binding the Header data to the list of the master view.

 

the data is coming correctly in my master View.

 

Now i have a requirement that i have to read the odata result in one of the json model  , in the master controller but i am not getting how to get it.

 

In the JS view , we use to set the json model using the code

 

oJSONDetailModel = new sap.ui.model.json.JSONModel();

  oJSONDetailModel.setData({

  modelDataDetail : oJSONModel.oData.modelData[0]

  });

 

But not getting how to do it in XML Views.Please help.

 

Regards,

Vikash


Viewing all articles
Browse latest Browse all 3668

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>