we are developing Household survey apps.we have created repeat group that
registers all people leaving with in the household head including their
age and sex. From this we need to store all woman with age range 15 and
59,all men with age range 15 and 49 and all children under 5 in hidden
value from the repeat group automatically without asking the household
head again.
To do this we have created hidden values and set the calculate condition
as shown below
prev_men_aged_15_and_59 = coalesce(/data/men_aged_15_and_59, 0)
prev_woman_aged_15_and_59 = coalesce(/data/woman_aged_15_and_59, 0)
men_aged_15_and_59 = if(/data/Register_peoples_live/sex_name = "male"
and /data/Register_peoples_live/age_name >=15 and
/data/Register_peoples_live/age_name <=59 ,
/data/prev_men_aged_15_and_59+1, /data/prev_men_aged_15_and_59) .This will
store for the choice value male selected and age range between 15 and 59
entered.
woman_aged_15_and_59 = if(/data/Register_peoples_live/sex_name = "female"
and /data/Register_peoples_live/age_name >=15 and
/data/Register_peoples_live/age_name <=59 ,
/data/prev_woman_aged_15_and_59+1, /data/prev_woman_aged_15_and_59) .The
same which store number of woman
children_under_5 = if( /data/Register_peoples_live/age_name <=
5,/data/number_of_peaples_staying,' ').For storing children under 5 age
entered.
Unfortunately this is not working. Could somebody help me how to fix this
.The way we thought it would work is not working.
Tewelde Aregawi
E-Health Specialist
MVP(MDE)
Tigray/Hawzein
Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi
Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You'll need Skype CreditFree via Skype