view app/model/Deskriptor.js @ 917:2bf35377414a

Use rest response handler to act on unauthenticated request.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 14 Aug 2015 09:31:46 +0200
parents 274a843caf44
children f73ca04d73a7
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/deskriptor',
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'totalCount'
        }
    }
});

http://lada.wald.intevation.org