попробуйте этот сценарий:
SenderView:
initComponent: function () {
var foo = 'bar';
// call to parent initComponent....
this.query('#buttonID')[0].on({
scope: this,
tap: function (ct) {
Ext.dispatch({
controller: 'MyController',
action: 'myaction',
foo: foo
})
}
})
}
MyController:
myaction : function (options) {
var foo = options.foo;
this.render ({
xtype: 'myview',
foo: foo
})
}
MyView:
initComponent: function () {
var config = this.initialConfig,
// hopla! foo is transmitted from SenderView to the MyView
foo = config.foo;
...
console.log(foo) ; // bar
}
код не очень проверен, но идея ясна, я надеюсь:)
Олег