← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2994: Fix bug: No result is displayed in the report tables.

 

------------------------------------------------------------
revno: 2994
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-03-10 10:22:59 +0700
message:
  Fix bug: No result is displayed in the report tables.
modified:
  dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.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-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js	2011-03-08 01:55:01 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/generateReport.js	2011-03-10 03:22:59 +0000
@@ -2,8 +2,6 @@
 var MODE_REPORT = "report";
 var MODE_TABLE = "table";
 
-var reportType;
-
 // -----------------------------------------------------------------------------
 // Report params
 // -----------------------------------------------------------------------------
@@ -34,16 +32,14 @@
 // Report
 // -----------------------------------------------------------------------------
 
-function generateReport( type )
+function generateReport()
 {
-	reportType = type != null && type != "" ? type : "pdf";
-	
 	if ( validationError() )
 	{
 		return false;
 	}
 		
-    setWaitMessage( i18n_please_wait );
+    setMessage( i18n_please_wait + "..." );
     
     var doDataMart = ( $( "#doDataMart" ).length && $( "#doDataMart" ).val() == "true" );
     
@@ -78,7 +74,7 @@
     
     if ( finished == "true" )
     {
-        setMessage( i18n_process_completed );
+        setMessage( i18n_process_completed );        
     	viewReport();
     }
     else
@@ -91,11 +87,9 @@
 {
 	var mode = $( "#mode" ).val();
 	
-	setMessage( i18n_process_completed );
-	
     if ( mode == MODE_REPORT )
     {
-    	window.location.href = "renderReport.action?type=" + reportType + "&" + getUrlParams();
+    	window.location.href = "renderReport.action?" + getUrlParams();
     }
     else // MODE_TABLE
     {