If I use this.getView() inside the controller of a view I can retrieve it without problems. How can I retrieve the view if I am outside the controller (e. g. in
this.getView()
When I create a view i set a id
var theView=sap.ui.xmlview("OperationDetail, "");
then i retrieve it by id
var theView = sap.ui.core.Core().byId("OperationDetail"); var myPage=theView.byId("pageOperation");