torsten@53: Ext.define('Lada.model.Kommentar', { torsten@53: extend: 'Ext.data.Model', torsten@53: fields: [ torsten@53: {name: "id"}, torsten@57: {name: "kid"}, torsten@53: {name: "probeId"}, torsten@53: {name: "erzeuger"}, torsten@53: {name: "kdatum"}, torsten@53: {name: "ktext"} torsten@53: ], torsten@62: // TODO: This id field is currently a combined field of probeId and kid torsten@62: // which cases problems when generating a request with this id to the torsten@62: // server. torsten@57: idProperty: "id", torsten@53: proxy: { torsten@53: type: 'rest', torsten@53: appendId: true, //default torsten@53: url: 'server/rest/kommentare', torsten@53: reader: { torsten@53: type: 'json' torsten@53: } torsten@53: } torsten@53: });