dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #26083
Re: [Dhis2-users] Custom Form Dataset
Hi @Randy,
The problem is not the javascript code since it works well. The problem is
that in place to record in the database since all people are dataelements
although others derive the AS population, but the system only records the
AS population in postgresql datavalue table.
2013/11/13 Wilson,Randy <rwilson@xxxxxxx>
> Hi Riddy,
>
>
>
> You can probably achieve the same result by creating indicators and
> including them in your custom form.
>
>
>
> We do the same thing in Rwanda, but apply standard percentage constants
> for children under 1 year (3.83%), women of reproductive age (26.3%), etc…
>
>
>
> If your Javascript function has more smarts (e.g. needs to lookup a
> percentage that is different for each district before calculating the
> result) then your approach make more sense.
>
>
>
> Randy
>
>
>
> *From:* Dhis2-users [mailto:dhis2-users-bounces+rwilson=
> msh.org@xxxxxxxxxxxxxxxxxxx] *On Behalf Of *riddy ndoma
> *Sent:* Wednesday, November 13, 2013 2:51 PM
> *To:* DHIS 2 developers; dhis1-users
> *Subject:* [Dhis2-users] Custom Form Dataset
>
>
>
> I just customize the form of a Dataset as shown in the image attached.
>
> This dataset has 11 items of data:
>
> population-AS
>
> population-0-11months
>
> population-6-11months
>
> -etc.
>
>
>
> I added a JavaScript function that once it enters the value of the AS
> population and the field loses focus, the other people who depend on the
> population AS load automatically. It works well. but the problem is that
> when I click on "complete". it works fine ... but when I go on datavalue
> postgresql table to check if the data I have entered entries, I see that
> given the AS population. The other values of the people do not come.
>
>
>
> I also put in the home page with javascript code
>
>
>
> --
>
> Riddy NDOMA
> Software Developer
> *Skype:* riddyndoma, *G+:* riddyndoma, *FB:* riddy ndoma
> *Twitter:* riddyndoma, *LinkedIn:* riddy ndoma
> *Blog:* http://riddyndoma.blogspot.com/
>
> Vous servir est mon désire (Serving you is my desire)
>
--
Riddy NDOMA
Software Developer
*Skype:* riddyndoma, *G+:* riddyndoma, *FB:* riddy ndoma
*Twitter:* riddyndoma, *LinkedIn:* riddy ndoma
*Blog:* http://riddyndoma.blogspot.com/
Vous servir est mon désire (Serving you is my desire)
Follow ups
References