comparison app/model/Zusatzwert.js @ 131:968806c1a3cb

Implement custom getEidi function to build a ID from the pzsId and the probenID.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 25 Jun 2013 17:30:01 +0200
parents f5864914ebb3
children 4dc84682110d
comparison
equal deleted inserted replaced
130:747d488b9203 131:968806c1a3cb
44 }, 44 },
45 writer: { 45 writer: {
46 type: 'json', 46 type: 'json',
47 writeEverything : true 47 writeEverything : true
48 } 48 }
49 },
50 getEidi: function () {
51 var sprobenZusatz = this.get('sprobenZusatz');
52 var pzsId = sprobenZusatz.pzsId;
53 var probeId = this.get('probeId');
54 return "/" + pzsId + "/" + probeId;
49 } 55 }
50 }); 56 });
51 57
52 function buildId(v, record){ 58 function buildId(v, record){
53 return record.get('probeId') + ',' + record.get('pzsId'); 59 return record.get('probeId') + ',' + record.get('pzsId');

http://lada.wald.intevation.org