So what I'm trying to achieve is to populate the Form with the selected row records and/or to edit the rows through form, via the ViewModel so it's two-way binding, I have done soo in the states field but I'm having trouble with the other fields, I have tried formulas but that didn't work either. Here is a handler that did console the records but I can't bind them with the form fields.
store = this.getView().getStore();
var records = record.getSelected().items[0].data;
//var record = records[0];
console.log('showChart',records)
if (records) {
this.getView().getDialog().loadRecord(records);
}
console.log(records.name);
Here is my Fiddle example