view app/store/Queries.js @ 241:4ca858026191

If the user selects a search query add call setupColumns method to dynamically add columns to the table as defined in the searach query.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 23 Jul 2013 11:31:47 +0200
parents 910cd477bfda
children 331c77afdbcb
line wrap: on
line source
/*
 * The following fields are avalailable to show in the search result. Please
 * Define which columns should be visible in whioch order in the fields
 * variable for each query.
 *
'datenbasisId'
'mplId'
'umwId'
'messmethode'
'hauptprobenNr'
'nebenprobenNr'
'bezeichnung'
'kreis'
'probeId'
'mstId'
*/

Ext.define('Lada.store.Queries', {
    extend: 'Ext.data.Store',
    model: 'Lada.model.Query',
    data  : [
        {
            'id': '1',
            'name': 'MST, UWB',
            'description': 'Beschreibung der MST, UWB Abfrage',
            'sql': 'select * from xxx',
            'fields': []
        },
        {
            'id': '2',
            'name': 'Rbegin',
            'description': 'Beschreibung der Rbegin Abfrage',
            'sql': 'select * from xxx',
            'fields': []
        }
    ],
});

http://lada.wald.intevation.org