a3226988 2012-09-14 16:32
浏览 304
已采纳

Extjs4 form表单内label的取值问题!

表单控件的代码:[code="java"]{
xtype : 'text',
name : 'nodepath'
}[/code]
获取值得代码:[code="java"]this.FormPanel.getForm().findField('nodepath').getValue()[/code]

当xtype类型为textfield、field等类型的时候就能取得到,但是类型是label、text就取不到值Cannot call method 'getValue' of null

求解如何取得label控件的值?

  • 写回答

3条回答 默认 最新

  • iteye_5246 2012-09-14 16:55
    关注

    label没有 getValue 方法,有text
    text 没有 getValue 方法 有getFieldLabel

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?