Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8808

Get oData from model binded to view

$
0
0

Hi experts,

 

I have binded my data to my view like this:

 

var key = "/SalesSet('" + oEvent.getParameter("arguments").salesactivity + "')";

  var pgDetail = sap.ui.getCore().byId("pgDetail");

  pgDetail.bindElement(key);

 

pgDetail is the ID of the Page element on this view.

 

When executing this line: console.log(sap.ui.getCore().byId("pgDetail").getModel()); I see the model that was binded to the view.

 

Capture.PNG

Now I would like to have access to these objects that are located in the oData object. How can I do this?

 

Kind regards,

 

Bart Geudens


Viewing all articles
Browse latest Browse all 8808

Trending Articles



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