view app/model/Probenzusatzwert.js @ 189:214d1b274a50

As the model now should have a readonly flag, the check if the form must be rendered as readonly was moved to the place where the model is actually bound to the form.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 05 Jul 2013 14:49:15 +0200
parents a7bfaeb1655d
children 2af694c73dd7
line wrap: on
line source
Ext.define('Lada.model.Probenzusatzwert', {
    extend: 'Ext.data.Model',
    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