dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #06071
Re: Filter data elements by domain type
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>
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>:
>
>> 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
>>
>
> _______________________________________________
> 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