[Lada-commits] [PATCH 05 of 13] Added nested id attribute which comes in JSON response to the model as we need

Wald Commits scm-commit at wald.intevation.org
Wed Jul 3 16:09:21 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1372852955 -7200
# Node ID 5eb0cfac0e30391537a50edc988c3faa212d3a49
# Parent  0b635b836903eba47a860b528e98cd9c33cdbad3
Added nested id attribute which comes in JSON response to the model as we need
it later in the grid view to be able to acess messungsIs and probeId in the
custom renderer.

diff -r 0b635b836903 -r 5eb0cfac0e30 app/model/Messung.js
--- a/app/model/Messung.js	Wed Jul 03 14:00:55 2013 +0200
+++ b/app/model/Messung.js	Wed Jul 03 14:02:35 2013 +0200
@@ -1,6 +1,7 @@
 Ext.define('Lada.model.Messung', {
     extend: 'Ext.data.Model',
         fields: [
+        {name: "id"},
         {name: "messungsId", mapping:"id.messungsId"},
         {name: "probeId", mapping:"id.probeId"},
         {name: "mmtId"},


More information about the Lada-commits mailing list