Saturday 27 April 2013

ExtJs : insert_using_sync_method_in_strore


var teststore = new Ext.data.Store({model: 'NewUnit'});
                 unitstore.add({
                 Name: Ext.getCmp('create-unit-name').getValue(),
                 VehicleTypeId: Ext.getCmp('create-unit-type').getValue(),
                 VehicleInfo: Ext.getCmp('create-unit-note').getValue(),
                 Enabled: Ext.getCmp('create-unit-active').getValue(),
                 GroupId: Ext.getCmp('create-unit-account').getValue()
                 });
unitstore.sync();

No comments:

Post a Comment