dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36717
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18780: Analytics/grid, using descriptive columns for Excel and CSV downloads
------------------------------------------------------------
revno: 18780
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-03-31 14:52:08 +0200
message:
Analytics/grid, using descriptive columns for Excel and CSV downloads
modified:
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/grid/GridUtils.java
--
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-support/dhis-support-system/src/main/java/org/hisp/dhis/system/grid/GridUtils.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/grid/GridUtils.java 2015-02-22 20:02:00 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/grid/GridUtils.java 2015-03-31 12:52:08 +0000
@@ -291,7 +291,7 @@
for ( GridHeader header : grid.getVisibleHeaders() )
{
- sheet.addCell( new Label( columnIndex++, rowNumber, header.getName(), XLS_FORMAT_LABEL ) );
+ sheet.addCell( new Label( columnIndex++, rowNumber, header.getColumn(), XLS_FORMAT_LABEL ) );
}
rowNumber++;
@@ -333,7 +333,7 @@
while ( headers.hasNext() )
{
- out.write( csvEncode( headers.next().getName() ).getBytes() );
+ out.write( csvEncode( headers.next().getColumn() ).getBytes() );
if ( headers.hasNext() )
{