dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #05553
difficuties to obtain dataelements from oganisation units through the api....
Hi,
I'm trying to use the API to get information on an organisation unit.
For instance i'm trying to extract the 'contact name'.
My request looks as follow:
...dhis/api/analytics?dimension=dx:IBRoBwdUxkA&dimension=pe:2012&dimension=ou:vzw0YutAWos
and i obtain an answer like this:
{"headers":[{"name":"dx","column":"Data","type":"java.lang.String","hidden":false,"meta":true},{"name":"pe","column":"Period","type":"java.lang.String","hidden":false,"meta":true},{"name":"ou","column":"Organisation
unit","type":"java.lang.String","hidden":false,"meta":true},{"name":"value","column":"Value","type":"java.lang.Double","hidden":false,"meta":false}],"metaData":{"pe":["2012"],"co":[],"ou":["vzw0YutAWos"],"names":{"pe":"Period","ou":"Organisation
unit","dx":"Data","IBRoBwdUxkA":"Nom et prénoms
contact","2012":"2012","vzw0YutAWos":"MUTUELLE DE SANTE DE
BANIKOARA"}},"height":0,"rows":[],"width":0}
with rows being empty...
I can get dataelements with a numeric value. Is there something specific
with datalements that have to return strings ?
Any idea what i am doing wrong ?
Thanks,
Stephane
Follow ups