=== modified file 'dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js' --- dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js 2012-03-14 23:37:10 +0000 +++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/app.js 2012-03-21 15:17:23 +0000 @@ -665,6 +665,11 @@ setHeight: function(mx) { var h = DV.cmp.region.west.getHeight() - DV.conf.layout.west_fill; DV.cmp.dimension.panel.setHeight(h > mx ? mx : h); + }, + setDimensionLabels: function() { + //alert(DV.cmp.settings.series.getValue()); + //alert(DV.cmp.settings.series.getRawValue()); + //DV.cmp.settings.series } } }, @@ -1447,7 +1452,7 @@ if (!this.validation.favorite(f)) { return; } - + DV.c.type = f.type.toLowerCase(); DV.c.dimension.series = f.series.toLowerCase(); DV.c.dimension.category = f.category.toLowerCase(); @@ -1461,22 +1466,23 @@ if (f.indicators) { for (var i = 0; i < f.indicators.length; i++) { - DV.c.indicator.objects.push({id: f.indicators[i].internalId, name: DV.util.string.getEncodedString(f.indicators[i].shortName)}); + DV.c.indicator.objects.push({id: f.indicators[i].internalId, name: DV.util.string.getEncodedString(f.indicators[i].name)}); } } + if (f.dataElements) { for (var i = 0; i < f.dataElements.length; i++) { - DV.c.dataelement.objects.push({id: f.dataElements[i].internalId, name: DV.util.string.getEncodedString(f.dataElements[i].shortName)}); + DV.c.dataelement.objects.push({id: f.dataElements[i].internalId, name: DV.util.string.getEncodedString(f.dataElements[i].name)}); } } if (f.dataSets) { for (var i = 0; i < f.dataSets.length; i++) { - DV.c.dataset.objects.push({id: f.dataSets[i].internalId, name: DV.util.string.getEncodedString(f.dataSets[i].shortName)}); + DV.c.dataset.objects.push({id: f.dataSets[i].internalId, name: DV.util.string.getEncodedString(f.dataSets[i].name)}); } } DV.c.period.rp = f.relativePeriods; for (var i = 0; i < f.organisationUnits.length; i++) { - DV.c.organisationunit.objects.push({id: f.organisationUnits[i].internalId, name: DV.util.string.getEncodedString(f.organisationUnits[i].shortName)}); + DV.c.organisationunit.objects.push({id: f.organisationUnits[i].internalId, name: DV.util.string.getEncodedString(f.organisationUnits[i].name)}); } DV.c.organisationunit.groupsetid = f.organisationUnitGroupSet ? f.organisationUnitGroupSet.internalId : null; @@ -2366,11 +2372,12 @@ store: DV.store.dimension(), value: DV.conf.finals.dimension.data.value, listeners: { - afterrender: function() { + added: function() { DV.cmp.settings.series = this; }, select: function() { DV.util.combobox.filter.category(); + DV.util.dimension.panel.setDimensionLabels(); } } } @@ -2459,7 +2466,6 @@ { title: '