dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #10185
Re: API call on reportTable with parameters?
This looks to be working, even if I'm not clear on the relationship between
dates & periods.
Last but not least - I had two ideas to make this work: either use the
reportTable as API source (pro: it already existed) or create the
equivalent using the analytics web API. My problem in that second case it
that I did not find any way to collect all the indicators for a given group
for a specific organisation unit except by listing them one by one. There
is something call a data element group using a syntax like:
dx:DE_GROUP-<id>
but it does not look to work for indicators group. Is there an alternate,
non documented syntax for those?
If both approach can work, any advice on using one vs the other (analytics
vs reportTable) ?
Martin
On Mon, May 9, 2016 at 10:39 AM, Morten Olav Hansen <morten@xxxxxxxxx>
wrote:
> I'm honestly not sure, Lars would have to answer that. The date itself is
> a normal date object, which means multiple date formats are supported.
>
> @Lars ?
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, May 9, 2016 at 3:37 PM, Martin Van Aken <martin@xxxxxxxxxxxxxxxx>
> wrote:
>
>> Thanks a lot for the quick answer. Is the date a period ? (in my case the
>> table represent a selection of data element and indicators which are
>> collected each month in each org units).
>>
>> Martin
>>
>> On Mon, May 9, 2016 at 10:34 AM, Morten Olav Hansen <morten@xxxxxxxxx>
>> wrote:
>>
>>> Hi Martin
>>>
>>> You can use ou and date as query parameters
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Mon, May 9, 2016 at 3:18 PM, Martin Van Aken <martin@xxxxxxxxxxxxxxxx
>>> > wrote:
>>>
>>>> Hi,
>>>> We currently have a reportTable used to generate a PDF report. We now
>>>> want to be able to extract the exact same info using the API. I've seen
>>>> that there is a reportTables/<ID>/data.json option, but I cannot find how
>>>> to pass it parameters (our table take two - the organisation unit and the
>>>> period).
>>>>
>>>> Any pointers?
>>>>
>>>> Thanks,
>>>>
>>>> Martin
>>>>
>>>> --
>>>> *Martin Van Aken - **Freelance Enthusiast Developer*
>>>>
>>>> Mobile : +32 486 899 652
>>>>
>>>> Follow me on Twitter : @martinvanaken
>>>> <http://twitter.com/martinvanaken>
>>>> Call me on Skype : vanakenm
>>>> Hang out with me : martin@xxxxxxxxxxxxxxxx
>>>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
>>>> Company website : www.joyouscoding.com
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>
>>
>> --
>> *Martin Van Aken - **Freelance Enthusiast Developer*
>>
>> Mobile : +32 486 899 652
>>
>> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
>> Call me on Skype : vanakenm
>> Hang out with me : martin@xxxxxxxxxxxxxxxx
>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
>> Company website : www.joyouscoding.com
>>
>
>
--
*Martin Van Aken - **Freelance Enthusiast Developer*
Mobile : +32 486 899 652
Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
Call me on Skype : vanakenm
Hang out with me : martin@xxxxxxxxxxxxxxxx
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com
Follow ups
References