view app/model/Query.js @ 248:d40a552382a3

Changed proxy to load data from the server.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 24 Jul 2013 14:52:10 +0200
parents 7097182150d9
children 5e4d926d7717
line wrap: on
line source
Ext.define('Lada.model.Query', {
    extend: 'Ext.data.Model',
    fields: [
        {name: "id"},
        {name: "name"},
        {name: "description"},
        {name: "sql"},
        {name: "results"},
        {name: "filters"},
    ],
    proxy: {
        type: 'rest',
        url: 'server/rest/query',
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

http://lada.wald.intevation.org