← Back to team overview

dhis2-devs team mailing list archive

[Bug 1240399] Re: No data in Report Tables generated from Pivot Tables with DataElement - Details (categories)

 

dhis-2\dhis-api\src\main\java\org\hisp\dhis\reporttable\ReportTable.java

Method: 
public Grid getGrid( Grid grid, Map<String, Double> valueMap, boolean paramColumns )
....

             // -----------------------------------------------------------------
            // Row data values
            // -----------------------------------------------------------------

            for ( List<NameableObject> column : gridColumns )
            {
                String key = getIdentifer( column, row );
                
                Double value = valueMap.get( key );
                
                grid.addValue( value );
            }
....

On the routine above, key has values like:  "2013-FIbM6WouPGs.PGn5wAmodfX"
and valueMap has values like "2013-FIbM6WouPGs-PGn5wAmodfX"


Matching tokens is not possible as one uses the '-' as separator and the other a '.'.

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1240399

Title:
  No data in Report Tables generated from Pivot Tables with DataElement
  - Details (categories)

Status in DHIS 2:
  New

Bug description:
  Problem with Pivot Tables and generated Report Tables:

    Create one Pivot Table that show data, but the Report Table
  generated from the Pivot Table don’t show anything, the pivot table is
  created with Data Element - Details (Categories).

  (the report table don´t show any data, even after the Analytics and
  Datamart update tables)

  (The Version I’m using is: 2.13-SNAPSHOT, Build revision: 12639, Build
  date: 2013-10-14 16:04 , I have this behavior at the snapshot
  [http://apps.dhis2.org/dev/dhis-web-pivot/app/index.html], version
  2.13, see attach
  https://bugs.launchpad.net/dhis2/+bug/1240399/+attachment/3879065/+files
  /pivot-table_generated-report-table.png)

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1240399/+subscriptions


References