view app/model/Query.js @ 325:4c4f03c87d49

Inherit from model.Base
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 08:47:01 +0200
parents bc87e080ad05
children 6964cd97d35f
line wrap: on
line source
/**
 * Model class for SQL-Querys
 */
Ext.define('Lada.model.Query', {
    extend: 'Ext.data.Model',
    requires: ['Lada.lib.Helpers'],
    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