listeners : {
'select' : {
fn : function(tf, nv, ov) {
Ext.getCmp('mycomponent-panel-object-model_id').reset();
Ext.getCmp('mycomponent-panel-object-model_id').baseParams.brand_id = tf.getValue();
Ext.getCmp('mycomponent-panel-object-model_id').getStore().load();
},
scope : this
}
}
И в коде таблицы:
updateItem: function (btn, e, row) {
/* ... */
w = MODx.Ajax.request({
/* ... */
listeners: {
success: {
fn: function ® {
var w = MODx.load({
/* ... */
});
w.reset();
w.setValues(r.object);
/* нужный параметр для выборки */
Ext.getCmp('customextra-field-window-update-name').baseParams.template = r.object.tab;
w.show(e.target);
}, scope: this
}
}
});
},
Объектная
0 комментариев