← Back to team overview

dhis2-devs team mailing list archive

Re: API to get dataset section order

 

Hi Mahendra,

you should be able to get this by navigating the API to the data set, then
further to its sections.

E.g. this could work, sections are listed in the json array in correct
order:

https://apps.dhis2.org/demo/api/dataSets/QX4ZTUbOt3a.json?fields=id,name,sections


regards,

Lars

On Wed, Mar 18, 2015 at 7:00 AM, Mahendra Kariya <
mahendra.kariya@xxxxxxxxxxxxxxxx> wrote:

> Hi,
>
> We want to get the sort order of dataset sections.
>
> We tried /api/sections, but there is no such information.
>
> We also tried /api/dataSets. The only related information we have is the
> ordering in the dataset.sections array.
>
> What we are looking for is an explicit field which has the sort order of
> sections. Is there any API to get this info?
>
>
>
> Thanks,
> Mahendra
>