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

Re: Odata consumption in JS view

$
0
0

Hi,

 

In addition to Maksim´s post I would suggest:

- check the console output in your browsers dev tools

- add the following events to your model to see what´s going on:

oModel.attachMetadataFailed(function() {  jQuery.sap.log.debug("metadata failed");
}, this);
oModel.attachRequestCompleted(function(oData) {  jQuery.sap.log.debug("request completed");
});
oModel.attachMetadataLoaded(function() {  jQuery.sap.log.debug("metadata loaded");
});

If event RequestCompleted is called (set a breakpoint; usually it´s called async) and you have data in oData variable and still the UI is empty there is an issue with the binding (syntax).

 

Best regards,

Sebastian


Viewing all articles
Browse latest Browse all 3019

Trending Articles



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