dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27224
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13521: PT, hide empty rows supported in table layout download.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 13521 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-12-31 15:33:10 +0100
message:
PT, hide empty rows supported in table layout download.
modified:
dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js 2013-12-23 12:53:42 +0000
+++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js 2013-12-31 13:38:19 +0000
@@ -2993,7 +2993,7 @@
var store = dataElementAvailableStore,
detailLevel = dataElementDetailLevel.getValue(),
value = this.getValue();
-
+
if (value !== null) {
if (detailLevel === dimConf.dataElement.objectName) {
store.setTotalsProxy(value);
@@ -4653,6 +4653,7 @@
url += '&tableLayout=true';
url += '&columns=' + columnNames.join(';');
url += '&rows=' + rowNames.join(';');
+ url += ns.app.layout.hideEmptyRows ? '&hideEmptyRows=true' : '';
window.open(url, isNewTab ? '_blank' : '_top');
}