Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Consume response from Odata using sapui5

$
0
0

abhinav Chaitanya wrote:

 

what is /Products(1)  in "oModel.read('/Products(1)', null, null, true, function(oData, oResponse)" Thank You

 

Products is the entityset or collection. so in this example, product with ID (key)1 is being read. basically it will trigger get_entity method of Z*DPC_EXT class in the backend. 


If we try to call as

oModel.read('/Products', null, null, true, function(oData, oResponse)


then it would be query operation i.e get_entityset method will be triggered in backend


Regards,

Chandra


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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