view app/model/Probenzusatzwert.js @ 385:08bb418f31c9

Use 'this' reference for idProperty in model.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 30 Aug 2013 10:29:39 +0200
parents 24341cbed778
children debfcc7713e3
line wrap: on
line source
/**
 * Model class for Probenzusatzwert
 */
Ext.define('Lada.model.Probenzusatzwert', {
    extend: 'Lada.model.Base',
    fields: [
        {name: "pzsId"},
        {name: "mehId"},
        {name: "beschreibung"},
        {name: "zusatzwert"},
        {name: "eudfKeyword"}
    ],
    idProperty: "pzsId",
    proxy: {
        type: 'rest',
        appendId: true, //default
        url: 'server/rest/probenzusatz',
        autoload: true,
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

http://lada.wald.intevation.org