view app/model/Query.js @ 463:e18b170b34bc

Improved Import Dialog.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 09 Jan 2014 11:00:09 +0100
parents f9bb1ecf6462
children debfcc7713e3
line wrap: on
line source
/**
 * Model class for SQL-Querys
 */
Ext.define('Lada.model.Query', {
    extend: 'Lada.model.Base',
    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