← Back to team overview

dhis2-devs team mailing list archive

Re: webAPI JSON: (hierarchyMeta=true) outputs in Event Report VS Pivot Reports

 

On Tue, Mar 24, 2015 at 10:46 AM, Greg Rowles <greg.rowles@xxxxxxxxx> wrote:

> Hi Devs
>
> Please ignore, we've figured a way around this problem (metaData.ouHierarchy
> makes the lookups possible) but we have a new issue. In the
> [api/analytics/events/aggregate] JSON output metaData.names collection
> does not include header field names, e.g."pe": "Period", "ou": "Organisation
> unit","dx": "Data" are all missing.
>
>
Hi Greg,

these header names (pe, ou, dx) are static so really not a need to include
them in the server response every time - I suggest you just include these
names directly in a map in your report/app.

cheers

Lars

>
>

References