俺是新手。
问一个ext绑定数据问题。表单很复杂,想手工绑定。
现在的问题是,怎么获得form中的
{
                "fieldLabel": "账号",
                allowBlank : false,
                  blankText : '账号不能为空',
                name:'txtSkr_Account',
            }例如:我怎么通过name txtSkr_Account,去获得这个元素,然后给它赋值?

解决方案 »

  1.   

    目前你的数据比较适合json数据存入或者取出
      

  2.   

    我喜欢用id
    直接Ext.get("iddd").setValue("赋值")如果用name直能用Ext.get("frompanelid").getForm().findField("name").setValue来实现
      

  3.   

    {
      "fieldLabel": "账号",
      allowBlank : false,
      blankText : '账号不能为空',
      name:'txtSkr_Account',
      id :'txtSkr_Account'
      }
    再加个ID,然后使用,Ext.getCmp('txtSkr_Account').setValue(.....)赋值~~