Filter data elements by domain type

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

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@me.com:

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@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Support for enums have now beed added to trunk and 2.17

···

2015-01-07 12:44 GMT+01:00 Olav Poppe olav.poppe@me.com:

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@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Great!

···

2015-01-07 12:44 GMT+01:00 Olav Poppe olav.poppe@me.com:

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@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp