# HG changeset patch # User Torsten Irländer # Date 1372174201 -7200 # Node ID 968806c1a3cbf402ca7226840582d11bde4b321b # Parent 747d488b92034eaebfad723bef4d3896fb4e0623 Implement custom getEidi function to build a ID from the pzsId and the probenID. diff -r 747d488b9203 -r 968806c1a3cb app/model/Zusatzwert.js --- a/app/model/Zusatzwert.js Tue Jun 25 17:29:17 2013 +0200 +++ b/app/model/Zusatzwert.js Tue Jun 25 17:30:01 2013 +0200 @@ -46,6 +46,12 @@ type: 'json', writeEverything : true } + }, + getEidi: function () { + var sprobenZusatz = this.get('sprobenZusatz'); + var pzsId = sprobenZusatz.pzsId; + var probeId = this.get('probeId'); + return "/" + pzsId + "/" + probeId; } });