Why is the form not loaded into Ext js to edit the record?

onUpdDiary: function() { var win = Ext.widget('addWindowForm'); var form = win.down('form'); var record = form.getRecord(); var values = form.getValues(); record.set(values); }, 

An error occurs:

TypeError: record is undefined

  • Are you sure that at the time of calling getRecord() in data.Model there is at least one loaded instance? if it is not there, an attempt is made to call set(values) for undefined . - Vyacheslav Danshin

0