← Back to team overview

dhis2-users team mailing list archive

Re: AttributeValue of a program filtering in my browser

 

Hi,

Try this

api/programs.json?fields=id,name,attributeValues[value,attribute[id,name]]&filter=attributeValues.value:eq:true

---
Thank you,
Abyot.

On Thu, Feb 11, 2016 at 12:24 PM, Marc Garnica <marcgarnica13@xxxxxxxxx>
wrote:

> Dear All,
>
>
>
> I’ve created an attribute in Data Administration part and I’ve associated
> it to one program (with values Yes/no). Now I’m wondering If it should be
> possible to create an URL which give me all the programs having this
> Atribute as ‘Yes’.
>
> Like
>
> .../api/programs.json?filter=programAttribute:eq:Yes
>
> Thank you very much for your attention
>
>
>
> Regards,
>
> Marc Garnica
>
>
>
> _______________________________________________
> 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
>
>

References