dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17233
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6789: Fixed bug with sql viwew download as excel/csv
------------------------------------------------------------
revno: 6789
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-04-27 18:45:41 +0200
message:
Fixed bug with sql viwew download as excel/csv
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/sqlView.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/showDataSqlViewForm.vm
--
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-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/sqlView.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/sqlView.js 2012-04-09 03:25:59 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/sqlView.js 2012-04-27 16:45:41 +0000
@@ -95,7 +95,7 @@
function exportSqlView( type )
{
- var url = "exportSqlView.action?type=" + type;
+ var url = "exportSqlView.action?type=" + type + "&viewTableName=" + $( "#viewTableName" ).val();
window.location.href = url;
}
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/showDataSqlViewForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/showDataSqlViewForm.vm 2012-04-04 10:48:27 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/showDataSqlViewForm.vm 2012-04-27 16:45:41 +0000
@@ -7,7 +7,9 @@
}
</style>
-<h3>$i18n.getString( "view_data_for" ) "$!viewTableName"</h3>
+<h3>$i18n.getString( "view_data_for" ) "${viewTableName}"</h3>
+
+<input type="hidden" id="viewTableName" value="${viewTableName}"/>
<div>
<input type="button" value="$i18n.getString( 'get_report_as_xls' )" onclick="exportSqlView( 'xls' )" style="width:140px"/>