dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #06073
Re: Filter data elements by domain type
Great!
> 12. jan. 2015 kl. 05.51 skrev Morten Olav Hansen <mortenoh@xxxxxxxxx>:
>
> Support for enums have now beed added to trunk and 2.17
>
> On Wed Jan 07 2015 at 7:10:40 PM Halvdan Grelland <halvdanhg@xxxxxxxxx <mailto:halvdanhg@xxxxxxxxx>> wrote:
> DomainType is an enum, which doesn't seem to be supported for field filtering.
> The supported types (as stated in the dev manual) are :
> "string | boolean | integer | float | collection (checks for size) | date"
>
> I'm pretty sure support would have to be added specifically for enums for this to work. Morten could probably give some insight into this.
>
> 2015-01-07 12:44 GMT+01:00 Olav Poppe <olav.poppe@xxxxxx <mailto:olav.poppe@xxxxxx>>:
> Hi,
> I’m trying to filter data elements by domain type (through the API), but it does not seem to work. I’m using 2.17.
>
> I try this, but the result is empty:
> /api/dataElements.json?filter=domainType:eq:TRACKER
> /api/dataElements.json?filter=domainType:eq:AGGREGATE
>
> Any suggestions for what the problem might be?
>
> Olav
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
> More help : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
> More help : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
References