view app/store/Datenbasis.js @ 93:ab067fdb91b5

Set root of the data element to "data". This was needed as the Response of the server changed.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 13 Jun 2013 11:04:11 +0200
parents a1be7ccd4d0c
children
line wrap: on
line source
Ext.define('Lada.store.Datenbasis', {
    extend: 'Ext.data.Store',
    fields: ['datenbasisId', 'beschreibung', 'datenbasis'],
    proxy: {
        type: 'ajax',
        api: {
        read: 'server/rest/datenbasis'
        },
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

http://lada.wald.intevation.org