Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Access model in init method of controller

Hey guys,

I was just wondering if its is not possible to access the defined model in the init method of the controller:

onInit: function(){

     this.oModel = this.getView().getModel("ModelKundenInfos");

}

Is it not possible or did I do any mistake? Whats is your experience?

This should a simple question hopefully ;-).

Thanks and regards

Chris

Not what you were looking for? View more on this topic or Ask a question