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