Sencha touch Sencha触摸集数据

Sencha touch Sencha触摸集数据,sencha-touch,Sencha Touch,我想将控制器中的数据设置到formpanel(文本字段)。但不起作用 这是代码: 斯特罗尔 Ext.define('MyApp.store.CV_FamilyList', { extend : 'Ext.data.Store', requires : ['MyApp.model.CV_FamilyList'], config : { autoLoad : true, model : 'MyApp.model.CV_FamilyList', storeId : 'CV_Fa

我想将控制器中的数据设置到formpanel(文本字段)。但不起作用

这是代码:

斯特罗尔

Ext.define('MyApp.store.CV_FamilyList',
{
extend : 'Ext.data.Store',
requires : ['MyApp.model.CV_FamilyList'],
config :
{
    autoLoad : true,
    model : 'MyApp.model.CV_FamilyList',
    storeId : 'CV_FamilyList',
    proxy :
    {
        type : 'ajax',
        url : '?b=Family',
        reader :
        {
            type : 'json',
            rootProperty : 'data'
        }
    }
}
});
模型

名单

控制器

onCV_FamilyListItemTap : function(dataview, index, target, record, e, options) {

    this.getMain().push(
    {
        xtype : 'CV_FamilyEdit',
        title : record.data.firstname+" "+record.data.lastname,
        data : record.data
    });
}
"。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
试试这个。可能是这项工作

   onCV_FamilyListItemTap : function(dataview, index, target, record, e, options) {
   this.getMain().push(
        {
          xtype : 'CV_FamilyEdit',
          title : record.data.firstname+" "+record.data.lastname,
          data: record.getData() 
       });
  },
我做到了


@David Shonia您可以提供“列表视图”的编码。我将处理您的问题。Ext.define('MyApp.view.CV_FamilyList',{extend:'Ext.dataview.List',xtype:'CV_FamilyList',配置:{height:500,loadingText:'მონაცემები იტვირთება ...',存储区:'CV_FamilyList',itemTpl:['','{member}','{firstname}{lastname}','','','','','',']})@David Shonia如果你编辑你的问题并在那里添加代码会更好。无论如何,我会开始寻找。@David Shonia我也需要你的app.js和store.js,因为很难猜到你在使用哪种方法。请用代码更新您的问题。
onCV_FamilyListItemTap : function(dataview, index, target, record, e, options) {

    this.getMain().push(
    {
        xtype : 'CV_FamilyEdit',
        title : record.data.firstname+" "+record.data.lastname,
        data : record.data
    });
}
   onCV_FamilyListItemTap : function(dataview, index, target, record, e, options) {
   this.getMain().push(
        {
          xtype : 'CV_FamilyEdit',
          title : record.data.firstname+" "+record.data.lastname,
          data: record.getData() 
       });
  },
constructor : function(config) {
        this.callParent(config);
        this.setValues(
        {
            member : config.data.member,
            firstname : config.data.firstname,
            lastname : config.data.lastname
        })
    }