view app/store/Betriebsart.js @ 78:a8619efdf3ae

Removed ID field from create form as providing a value here seems to trigger a PUT instead of a POST request. The ID will be generated on serverside.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 11 Jun 2013 08:57:44 +0200
parents 39f5f1529847
children
line wrap: on
line source
Ext.define('Lada.store.Betriebsart', {
    extend: 'Ext.data.Store',
    fields: ['betriebsartId', 'betriebsart'],
    autoLoad: true,
    // This might be implemented later. Table in database is missing.
    //proxy: {
    //    type: 'ajax',
    //    api: {
    //    read: 'server/rest/probenart'
    //    },
    //    reader: {
    //        type: 'json'
    //    }
    //}
    data: [
        {"betriebsartId":"1", "betriebsart":"Normal-/Routinebtrieb"},
        {"betriebsartId":"2", "betriebsart":"Störfall/Intensivbetrieb"}
    ]
});

http://lada.wald.intevation.org