0
我有一个窗口。和一些字段(文本框和按钮)。现在我想提交这些细节。从窗口获取字段值
我得到这个错误:
TypeError: button.up("form").getValues is not a function
按键功能
buClicked : function (button,record) {
var val= button.up('form').getValues();
console.log(val.textfieldValue);
}
我的婚姻定义
Ext.define('MyApp.view.WindowForm', {
extend: 'Ext.window.Window',
alias: 'widget.winform',
id: 'winformid',
谢谢。这工作'var val = button.up('window')。down('form')。getForm()。getValues();' – Illep 2012-07-24 23:41:38