Sencha touch 为什么不能在文本字段中显示数据?

Sencha touch 为什么不能在文本字段中显示数据?,sencha-touch,Sencha Touch,为什么屏幕上没有显示数据? 或者告诉我解决或避免此问题的好方法/正确方法 多谢各位 [视图块] Ext.define('CreditQuery.view.QueryResult', { extend: 'Ext.tab.Panel', xtype: 'queryresult', config: { defaults: { defaultType: 'textfield' }, items: [{ title: 'Credit',

为什么屏幕上没有显示数据? 或者告诉我解决或避免此问题的好方法/正确方法

多谢各位

[视图块]

Ext.define('CreditQuery.view.QueryResult', {
extend: 'Ext.tab.Panel',
xtype: 'queryresult',

config: {
    defaults: {
        defaultType: 'textfield'
    },
    items: [{
        title: 'Credit',
        },
        items: [{
            label: 'CustNo',
            name: 'ACCOUNT_ID'
        },{
            label: 'CustName',
            name: 'ACCOUNT_TEXT'
        }]
    }]
}
})
[在控制器块中]

function setData(data){
data = {
    ACCOUNT_ID: "FN2180004",
    ACCOUNT_TEXT: "John1218"
}

Ext.ComponentQuery.query('queryresult textfield')[0].setValue(data.ACCOUNT_ID);
Ext.ComponentQuery.query('queryresult textfield')[1].setValue(data.ACCOUNT_TEXT);

Ext.ComponentQuery.query('main')[0].push([{ xtype: 'queryresult' }]);
}

访问如下文本字段:-

控制器-

refs: {
    customerNumberField : 'textfield[name="ACCOUNT_ID"]',
    customerNameField : 'textfield[name="ACCOUNT_TEXT"]'
}

function setData(data){
 data = {
    ACCOUNT_ID: "FN2180004",
    ACCOUNT_TEXT: "John1218"
 }

 this.getCustomerNumberField().setValue(data.ACCOUNT_ID);
 this.getCustomerNameField().setValue(data.ACCOUNT_TEXT);
}