0

ビューを作成しました

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'
                     }                               
                 ]
             }
         ]
    }
});

そして、次のようなコントローラー内のそのビューのインスタンス:

var newObject = Ext.create("App.view.leaders.MyViewName");

次のように別のビューに動的に追加します。

var newAdd = this.getLeadDetail1003()
                 .down('leadDetail1003AssetsLiab')
                 .down('fieldset[itemId=AddCashAsset]');

newAdd.add(newObject);

しかし、それはフォームに追加されません! 誰かが私が間違っていること、または今何をする必要があるか教えてもらえますか?

4

0 に答える 0