Mercurial > lada > lada-client
diff app/model/Probenzusatzwert.js @ 122:a7bfaeb1655d
Cleanup part three. Reenabled Zusatzwerte and implemented sending nested data.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 21 Jun 2013 16:56:17 +0200 |
parents | |
children | 2af694c73dd7 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/model/Probenzusatzwert.js Fri Jun 21 16:56:17 2013 +0200 @@ -0,0 +1,21 @@ +Ext.define('Lada.model.Probenzusatzwert', { + extend: 'Ext.data.Model', + fields: [ + {name: "pzsId"}, + {name: "mehId"}, + {name: "beschreibung"}, + {name: "zusatzwert"}, + {name: "eudfKeyword"} + ], + idProperty: "pzsId", + proxy: { + type: 'rest', + appendId: true, //default + url: 'server/rest/probenzusatz', + autoload: true, + reader: { + type: 'json', + root: 'data' + } + } +});