mountain
(Mountain)
22 June 2020 13:20
1
Hello,
Am trying to build a mobile app and am stuck on what API I can use to bring Data Element ID,Data Element Name and Data Element Value in one array/json?
Am currently using the following:
For Data Element ID and Data Element Value
DHIS 2 Demo - Sierra Leone …
For Data Element ID and Data Element Name
DHIS 2 Demo - Sierra Leone …
I want one that will output the Data Element ID,Data Element Name and Data Element Value
jthomas
(Jins Thomas)
23 June 2020 17:38
2
In my knowledge you need to write a script to run these two REST apis and then colllate to a csv in ID,Name,value, period
mountain
(Mountain)
23 June 2020 17:50
3
Thanks for that. Will try and write something. Do you have something to learn from?
Mbevi
(George)
25 June 2020 14:36
5
@mountain ,a script should make this happen as long as you have the required user rights
mountain
(Mountain)
25 June 2020 14:44
6
Hello team, I managed a workaround using two ajax calls and combining their output. I’m developing the App using cordova.
Nice @mountain . Maybe you wanna share your code here for future users?
1 Like