Search code examples
javascriptextjsextjs6-modern

The loadRecord() method in modern version EXT JS 6.2.0


From documentation 6.2.0 EXTJS, the loadRecord() method is available only in the classic version. How can I replace it in the modern version? I want to get the following effect only in the modern version 6.2.0:

if (record) {
    me.dialog.down("forms").loadRecord(record);
}

Solution

  • You can use setValues function like this :

    myForm.setValues(record);