view app/store/Proben.js @ 18:9e1a40312bbe

Implemented a basic edit dialog. Data will be set to data/proben2.json url which is currently just a dummy file to make to request work. But currently no data is actually saved. The urls need to be replaced with the correct urls in the application backend.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 06 May 2013 16:41:39 +0200
parents c0b2faa47ee5
children 764a0aef0f56
line wrap: on
line source
Ext.define('Lada.store.Proben', {
    extend: 'Ext.data.Store',
    fields: ['probeId', 'datenbasisId'],
    model: 'Lada.model.Probe',
    autoLoad: true,
    proxy: {
        type: 'ajax',
        api: {
            read: 'data/proben.json',
            update: 'data/proben2.json'
        },
        reader: {
            type: 'json',
            root: 'proben'
        }
    }
});

http://lada.wald.intevation.org