sencha touch - Add Dynamically A View in another View -
i have created view
ext.define("app.view.leaders.myviewname", { extend: 'app.view.basepopup', xtype: 'myviewname', config: <ext.form.ipanel>{ scrollable: 'vertical', items: [ { xtype: 'fieldset', title: 'add new auto asset', instructions: '<hr class="separate" />', items: [ <ext.field.iselect>{ xtype: 'selectfield', label: 'borrower position', store: 'borrowerpositionselectorstore', }, <ext.field.iselect>{ xtype: 'selectfield', label: 'asset type', store: 'assettypeselectorstore', }, { xtype: 'textfield', name: '', label: 'description' }, { xtype: 'numberfield', name: '', label: 'value' } ] } ] } });
and instance of view in controller like:
var newobject = ext.create("app.view.leaders.myviewname");
and add together view dynamically this:
var newadd = this.getleaddetail1003() .down('leaddetail1003assetsliab') .down('fieldset[itemid=addcashasset]'); newadd.add(newobject);
but not added form! can please tell me doing wrong or need now?
sencha-touch sencha-touch-2.3
No comments:
Post a Comment