I have form inside panel . How to get values of form using getValues() now??
var myForm = new Ext.form.Panel({
id:'form1',
items:[
{ fields ...}
]
});
var panel = new Ext.Panel({
id:'myPanel',
layout:'vbox',
items:[
myForm,
{
other fields
},
{
xtype : 'button',
text : 'save',
handler : function() {
}
}
]
});
Now
myForm.getValues();//not working
Ext.getCmp('form1').getValues();//not working
How to get values of form outside the form . Any help??
you need to put new
before Ext.form.Panel
..
double check the code before posting question in SO
var myForm = new Ext.form.Panel({
id:'form1',
items:[
{ fields ...}
]
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.