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....@lists.launchpad.net] 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)
_______________________________________________ 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