comparison app/model/Zusatzwert.js @ 123:d78bb4ca6089

Enabled accessing nested data in the grid through a renderer.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 21 Jun 2013 17:41:16 +0200
parents a7bfaeb1655d
children f5864914ebb3
comparison
equal deleted inserted replaced
122:a7bfaeb1655d 123:d78bb4ca6089
8 {name: "pzsId", mapping: "id.pzsId"}, 8 {name: "pzsId", mapping: "id.pzsId"},
9 {name: "probeId", mapping: "id.probeId"}, 9 {name: "probeId", mapping: "id.probeId"},
10 {name: "nwgZuMesswert", type: 'float'}, 10 {name: "nwgZuMesswert", type: 'float'},
11 {name: "messwertPzs", type: 'float'}, 11 {name: "messwertPzs", type: 'float'},
12 {name: "messfehler", type: 'float'}, 12 {name: "messfehler", type: 'float'},
13 {name: "letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()} 13 {name: "letzteAenderung", type: 'date', convert: ts2date, defaultValue: new Date()},
14 14
15 //// This are fields from the s_zusatzwert_table. They are currently not 15 // Field for the nested Probenzusatzobject. This one is needed to have
16 //// needed for displaying values in the grid. 16 // access to the nested data in the grid.
17 //{name: "sprobenZusatz"}, 17 // TODO: I would have expected that this field does not need to be
18 //{name: "sprobenZusatz_beschreibung", mapping: "sprobenZusatz.beschreibung"}, 18 // defined explicitly as there is the hasOne asscociation defined
19 //{name: "sprobenZusatz_pzsId", mapping: "sprobenZusatz.pzsId"}, 19 // which name and associationKey named "sprobenZusatz". Anyway it does
20 //{name: "sprobenZusatz_mehId", mapping: "sprobenZusatz.mehId"} 20 // not seem to make problems.
21 {name: "sprobenZusatz"}
21 ], 22 ],
22 hasOne: [ 23 hasOne: [
23 { 24 {
24 model: 'Lada.model.Probenzusatzwert', 25 model: 'Lada.model.Probenzusatzwert',
25 primaryKey: 'pzsId', 26 primaryKey: 'pzsId',

http://lada.wald.intevation.org