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

Re: how to get reference to sap.m.App?

$
0
0

hi ,

have one global variable in child view controller and assign the parent controller to this variable while instantiating .

 

ex:

 

in child view

 

sap.ui.core.Control.extend("a.sample.Control", {

     appController:null,
  init : function() {
  // instantiate a sub-control
  this._btn = new sap.m.Button();

//access appController here

  },

 

in parent view instantiating child view set the parent controller

 

this._detailsView = sap.ui.jsview("todolist.details"); 

this._detailsView.appController = this.getController()


Viewing all articles
Browse latest Browse all 3575

Latest Images

Trending Articles



Latest Images

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