← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-users] Custom Form Dataset

 

What surprises me is that how Randy when the form is was not personalized,
I recorded the information without a problem but I losrque personalized
with the same ID fields ca saves only the AS population and not other
people derived. The option to redo caluls with the constants in the
indicators is envisagable but the problem is many indicators have already
been done with the data of these items. it will be necessary to find these
indicators, with the risk of forgetting some of them.
I think if DHIS2 gives the ability to customize it supports this kind of
thing. Do not forget we want to replace a system that already existed,
users are accustomed to seeing these automatically generated via the GUI
populations.


2013/11/14 Wilson,Randy <rwilson@xxxxxxx>

>  You are right, since you can’t use an indicator in the formula for
> another indicator, I can see why you want to convert the calculated field
> to data values. However, you can duplicate the population calculation in
> each indicator definition – and now you can use system constants to store
> the percentages so that you can modify them in one place and it will change
> all of your indicator calculations without editing them.  Your approach
> also creates a lot of extra data elements in the system.
>
>
>
> Randy
>
>
>
> *From:* riddy ndoma [mailto:riddyndoma@xxxxxxxxx]
> *Sent:* Thursday, November 14, 2013 9:49 AM
> *To:* Wilson,Randy
> *Cc:* DHIS 2 developers; dhis1-users
> *Subject:* 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)
>



-- 
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