view app/model/ProbeList.js @ 413:e1af66012ef0 0.6

Reverse displayFields Array before configuring the columns of the result list. Now the displayed columns are in the same order as defined in the query configuration file.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 23 Sep 2013 14:26:09 +0200
parents 832e3c8f9191
children debfcc7713e3
line wrap: on
line source
/**
 * A ProbeList.
 * This class represents the result list of "Proben" in the search query
 * */
Ext.define('Lada.model.ProbeList', {
    extend: 'Lada.model.Base',
    fields: [
        {name: "readonly"}
    ],
    idProperty: "probeId",
    proxy: {
        type: 'rest',
        appendId: true, //default
        url: 'server/rest/proben',
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

http://lada.wald.intevation.org