extjs form record didn't updating
I have simple form - var form = new Ext.widget('form', ...
and I want after pressing the Save button to save all form data to my Model - currentUserRec.
Ext.regModel('User', {
fields: [
{name: 'USRID', type: 'int'},
..
});
var currentUserRec = new User({
开发者_运维百科 ..
});
var form1 = form.getForm();
form1.updateRecord(currentUserRec);
But nothing happens, currentUserRec is empty like before updateRecord
call.
What I do wrong?
Thank you.
精彩评论