Thanks. It works.

I have tried with different orgUnit with data.

But it would be better if we could put an empty dataValues instead of
leaving it completely out. Just my suggestion.

Regards.

On Dec 5, 2016 6:19 PM, "tuzo engelbert" <[email protected]> wrote:

> Dear Ocaya Stephen,
> It seems you are trying to pull data for period that has no data value.to
> get it different try to use
> https://play.dhis2.org/demo/api/dataValueSets.json?
> dataSet=pBOMPrpg1QX&period=201512&orgUnit=DiszpKrYNg8
>
> Hopes it will help to know the cause
>
> Thanks
>
> On Mon, Dec 5, 2016 at 5:33 PM, Ocaya Stephen <[email protected]> wrote:
>
>> Dear Dev,
>>
>> I am not sure if I am doing it wrongly. When I try to access
>> dataValueSets via the API (DHIS2 2.25), the return values does not have
>> dataValues as documented.
>>
>> To reproduce the issue: Try the example below:
>>
>> https://play.dhis2.org/demo/api/dataValueSets.json?dataSet=
>> pBOMPrpg1QX&period=201401&orgUnit=DiszpKrYNg8
>>
>> Attached is the output for the above and missing the "dataValues":[]
>> sections
>>
>> Kindly advise how best to do that.
>>
>> Sample Return Values::
>> {"dataSet":"XnjkPghTBX9","period":"201601","orgUnit":"aXmBzv61LbM"}
>>
>>
>>
>> --
>>
>> *You can do anything, but not everything.*
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to     : [email protected]
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to