=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/AnalyticsService.java' --- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/AnalyticsService.java 2013-02-21 15:21:16 +0000 +++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/AnalyticsService.java 2013-03-07 21:00:55 +0000 @@ -35,14 +35,11 @@ public interface AnalyticsService { - Grid getAggregatedDataValues( DataQueryParams params ) - throws IllegalQueryException, Exception; + Grid getAggregatedDataValues( DataQueryParams params ); - Map getAggregatedDataValueMap( DataQueryParams params ) - throws IllegalQueryException, Exception; + Map getAggregatedDataValueMap( DataQueryParams params ); - Map getAggregatedCompletenessValueMap( DataQueryParams params ) - throws IllegalQueryException, Exception; + Map getAggregatedCompletenessValueMap( DataQueryParams params ); DataQueryParams getFromUrl( Set dimensionParams, Set filterParams, AggregationType aggregationType, String measureCriteria, I18nFormat format ); === modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java' --- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java 2013-03-07 15:02:47 +0000 +++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java 2013-03-07 21:00:55 +0000 @@ -93,6 +93,7 @@ import org.hisp.dhis.period.comparator.PeriodComparator; import org.hisp.dhis.system.grid.ListGrid; import org.hisp.dhis.system.util.ConversionUtils; +import org.hisp.dhis.system.util.DebugUtils; import org.hisp.dhis.system.util.ListUtils; import org.hisp.dhis.system.util.MathUtils; import org.hisp.dhis.system.util.SystemUtils; @@ -145,11 +146,8 @@ // Implementation // ------------------------------------------------------------------------- - public Grid getAggregatedDataValues( DataQueryParams params ) - throws IllegalQueryException, Exception + public Grid getAggregatedDataValues( DataQueryParams params ) { - log.info( "Query: " + params ); - queryPlanner.validate( params ); params.conform(); @@ -326,19 +324,16 @@ } public Map getAggregatedDataValueMap( DataQueryParams params ) - throws IllegalQueryException, Exception { return getAggregatedValueMap( params, ANALYTICS_TABLE_NAME ); } public Map getAggregatedCompletenessValueMap( DataQueryParams params ) - throws IllegalQueryException, Exception { return getAggregatedValueMap( params, COMPLETENESS_TABLE_NAME ); } private Map getAggregatedCompletenessTargetMap( DataQueryParams params ) - throws IllegalQueryException, Exception { return getAggregatedValueMap( params, COMPLETENESS_TARGET_TABLE_NAME ); } @@ -348,8 +343,7 @@ * dimension key is a concatenation of the identifiers in for the dimensions * separated by "-". */ - private Map getAggregatedValueMap( DataQueryParams params, String tableName ) - throws IllegalQueryException, Exception + private Map getAggregatedValueMap( DataQueryParams params, String tableName ) { queryPlanner.validate( params ); @@ -372,11 +366,21 @@ for ( Future> future : futures ) { - Map taskValues = future.get(); - - if ( taskValues != null ) - { - map.putAll( taskValues ); + try + { + Map taskValues = future.get(); + + if ( taskValues != null ) + { + map.putAll( taskValues ); + } + } + catch ( Exception ex ) + { + log.error( DebugUtils.getStackTrace( ex ) ); + log.error( DebugUtils.getStackTrace( ex.getCause() ) ); + + throw new RuntimeException( "Error during execution of aggregation query task", ex ); } } === modified file 'dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/index.html' --- dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/index.html 2013-01-17 13:13:00 +0000 +++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/index.html 2013-03-07 21:00:55 +0000 @@ -2,7 +2,7 @@ - Web pivot + Pivot Table === 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-03-07 14:46:14 +0000 +++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js 2013-03-07 21:00:55 +0000 @@ -2973,11 +2973,11 @@ html = ''; html += '
'; - html += '
Creating a table
'; + html += '
Creating a pivot table
'; html += '
- Select items from any of the dimensions in the left menu
'; html += '
- Click "Layout" to arrange your dimensions on table rows and columns
'; html += '
- Click "Update" to create your table
'; - html += '
Working with a table
'; + html += '
Working with a pivot table
'; html += '
- Click "Options" to hide sub-totals or empty rows, adjust font size and more
'; html += '
- Click "Favorites" to save your table for later use
'; html += '
- Click "Download" to save table data to your computer
';