开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜