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

Re: Binding oData Model Entity Set to sap.m.Table after calling oModel.read

$
0
0

1. Why are you setting the model again to the table when it's already set to the view ?

 

  oTable.setModel(oModel); // not required


2. When you do oModel.read("/PaymentDetailsSet"), a http request will be sent to fetch the entitySet.

And again when you do, oTable.bindItems("/PaymentDetailsSet"), another http request will be sent to fetch the entitySet. Here why are you trying to make it redundant ?


Tip : Open you're debugger tools --> Network tab and check for the number of requests sent to PaymentDetailsSet.






Viewing all articles
Browse latest Browse all 3165

Trending Articles



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