I’ve seen something like this before, Vanuatu uses a few custom forms and they have the name of the facility listed somewhere in the header. I was able to get the facility UID by poking around the javascript (example below). We then use a json api request to get the facility name (but it seems like I might not have to do that if I am reading your email correctly!).
Here is a snippet where I am grabbing the Org Unit id:
From: Timothy Harding [mailto:hardingt@gmail.com] Sent: Tuesday, February 24, 2015 6:26 PM To: Pooben Dass Cc: DHIS 2 Developers list Subject: Re: [Dhis2-devs] Getting the OrgUnit id for a custom data Entry form
Hello there Pooben!
I’ve seen something like this before, Vanuatu uses a few custom forms and they have the name of the facility listed somewhere in the header. I was able to get the facility UID by poking around the javascript (example below). We then use a json api request to get the facility name (but it seems like I might not have to do that if I am reading your email correctly!).
Here is a snippet where I am grabbing the Org Unit id:
On Tue, Feb 24, 2015 at 6:02 PM, Pooben Dass pooben@hisp.org wrote:
Hi Timothy
Thanks for sharing this. It works like a bomb!
Regards
Pooben
From: Timothy Harding [mailto:hardingt@gmail.com] Sent: Tuesday, February 24, 2015 6:26 PM To: Pooben Dass Cc: DHIS 2 Developers list Subject: Re: [Dhis2-devs] Getting the OrgUnit id for a custom data Entry form
Hello there Pooben!
I’ve seen something like this before, Vanuatu uses a few custom forms and they have the name of the facility listed somewhere in the header. I was able to get the facility UID by poking around the javascript (example below). We then use a json api request to get the facility name (but it seems like I might not have to do that if I am reading your email correctly!).
Here is a snippet where I am grabbing the Org Unit id: