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
Hi,
Try this
api/programs.json?fields=id,name,attributeValues[value,attribute[id,name]]&filter=attributeValues.value:eq:true
···
On Thu, Feb 11, 2016 at 12:24 PM, Marc Garnica marcgarnica13@gmail.com 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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
Thank you,
Abyot.