Hi experts, How I can combine two views into one? I need to extend a view that is combining two views, and for that I need to run on the first controller, the second controller (to load the data associated with the controls of this second view). I'm trying:
(Instantiating View and controller)
var myController = sap.ui.controller("retail.store.stockcorrection.view.ProductShrink");
var myView = sap.ui.view({ type: sap.ui.core.mvc.ViewType.XML,
viewName: "retail.store.stockcorrection.view.ProductShrink",
controller: myController
});
(run onInit method)
myController.onInit();
but not load data associated/binding with the controls.
What is the best way to do this?, thanks.