view app/view/search/List.js @ 142:dee9da79f055

Added function to model with return the beschreibung of the messeinheit of a given Probenzusatzwert by pzsId.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 28 Jun 2013 11:15:39 +0200
parents 19eab475bbe5
children 5a9c6b71bad2
line wrap: on
line source
var searchStore = Ext.create('Ext.data.Store', {
    fields: ['id', 'name', 'description', 'sql'],
    data  : [
        {'id': '1', 'name': 'MST, UWB', 'description': 'Beschreibung der MST, UWB Abfrage', 'sql': 'select * from xxx'},
        {'id': '2', 'name': 'Rbegin', 'description': 'Beschreibung der Rbegin Abfrage', 'sql': 'select * from xxx'}
    ]
});

Ext.define('Lada.view.search.List' ,{
    extend: 'Ext.form.FieldSet',
    title: 'SQL-Auswahl',
    alias: 'widget.queryselector',

    initComponent: function() {
        this.items = [
            {
                id: 'search',
                xtype: 'combobox',
                editable: false,
                store: searchStore,
                displayField:'name',
                valueField:'id',
                emptyText:'Wählen Sie eine Abfrage'
            }
        ];
        this.callParent(arguments);
    }
});

http://lada.wald.intevation.org