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

SAP web ide (view extend) Combine two views into one.

$
0
0

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.


Viewing all articles
Browse latest Browse all 2794

Trending Articles



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