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

Cannot call method 'getODataModel' of undefined

$
0
0

Hi all, I am trying to call this statement in the onInit function:

 

this.oApplicationFacade.getODataModel().attachRequestCompleted(jQuery.proxy(this.onRequestCompleted,this));

 

 

onInit : function() {  jQuery.sap.require("sap.ca.scfld.md.ComponentBase");  this.oApplicationFacade.getODataModel().attachRequestCompleted(jQuery.proxy(this.onRequestCompleted,this));  .......    },

 

I am getting this error message: Uncaught TypeError: Cannot call method 'getODataModel' of undefined What went missing here?

 

Could someone give an example how to use it?

 

Thank you

 

Ferry


Viewing all articles
Browse latest Browse all 8720

Trending Articles



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