problem creating a new record and updating a new record in a store
Dear All,
I am facing one problem.
I want to add new record to my existing store and also want to modify some records in the store. but I am not able to my code is
Code:
var RecToUp = Ext.getCmp("transGridId").getStore().recordType;
var r = new RecToUp({
T10F2: this.Trans_key,
T6F2: this.NameKey,
});
r.commit();
store.add(r);
store.commitChanges();
but it is saying RecTOUp is not a constructor.
So please help me what is wrong here
thanks