dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #06056
Re: Filter data elements by domain type
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>:
> 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
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References