I have a grid attached to the form that represents the action of the form, to update the loaded record, if there is one, and add a new record if its form is empty. but if you select the record first and then call
myGrid.getSelectionModel().deselectAll();
myform.getForm().reset();
to clear the form so that I can add a new record, it overwrites the previously selected record with the update.
record = myform.getRecord();
if(record){
record.set(values);
}
should not myform.getRecord (); be null after a reset? how to clear record selection?
source
share