view app/model/Deskriptor.js @ 1209:78805e951c37

Release window if server reports errors.
author Tom Gottfried <tom@intevation.de>
date Mon, 10 Oct 2016 16:42:30 +0200
parents f73ca04d73a7
children
line wrap: on
line source
/**
 *
 */
Ext.define('Lada.model.Deskriptor', {
    extend: 'Ext.data.Model',

    /**
     * Fields are:
     *  - ...
     */
    fields: [{
        name: 'bedeutung'
    }, {
        name: 'beschreibung'
    }, {
        name: 'ebene'
    }, {
        name: 'id'
    }, {
        name: 'sn'
    }, {
        name: 'sXx'
    }],

    idProperty: 'id',

    proxy: {
        type: 'rest',
        url: 'lada-server/rest/deskriptor',
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'totalCount'
        }
    }
});

http://lada.wald.intevation.org