I have external API, proxy is rest, reader defined, type: 'json', rootProperty: 'data;
How to get property "FullName" I have tried with record.get('FullName').
Created function called getDetails, passed as argument string, returned return record.get('FullName), always undefined.
Details: function(v, record) {
return record.get('FullName')
}
Here is onDelete function :
OnDelete: function (record,data) {
Ext.Msg.confirm('Delete Changes', 'Do you want to delete' + " " + record.Details, function (choice) {
if (choice === 'yes') {
var store = Ext.getStore('store.Personnel');
store.remove(record);
store.sync();
}
})
},
You should use record.get('FullName') like:
Your example on fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2ttb