Problem

Hi Cory,
We are doing study for Nutritionin community! In that we are
taking Anthropometry of Family member for eg. height & weight , date of
birth etc…

we create module for that, but we want data as in row and once we done
antho for one member next time that member will not shown in mobile it must
be hide from mobile and who is pending that will be shown only pl help us
how to do this?

sincerely,
latika

Hi Latika,

What is the workflow you have for each family member? Do you register
family members and do their anthoin the same visit? Do you have other
workflow you do for each family member after taking their antho?

If you do not have any other workflow after taking each family member’s
antho, you can close the case representing them.
https://confluence.dimagi.com/display/commcarepublic/Case+Management

Thanks,
Sheel

Are you registering each family member as a case in the system? Once
you’ve done the measurements for a particular family member, you can close
the case

··· On Wed, Mar 20, 2013 at 10:23 AM, Latika Sb wrote:

Hi Cory,
We are doing study for Nutritionin community! In that we are
taking Anthropometry of Family member for eg. height & weight , date of
birth etc…

we create module for that, but we want data as in row and once we done
antho for one member next time that member will not shown in mobile it must
be hide from mobile and who is pending that will be shown only pl help us
how to do this?

sincerely,
latika


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Sheel Shah
Project Manager | Dimagi India
t: +91 1146704670 | m: +91 9560187282

Hi All,

Found this post and understand the solution if revisiting but I have a
similar situation within the current form.

I have a number of barcodes to scan.

When the form is first shown it shows “Scan Barcode 1” with others being
hidden whilst their previous question is empty.

As the scans happen, the questions become visible.

My issue is hiding the previous question once complete. I get xData warning
fro circular references.
I have tried: . != ‘’ in current display value.
Setting a hidden value based on “Scan_Barcode_1” and using this as
reference for display.

I am sure there is a way, any thoughts?

Best

Tim

Hi, Latika,

I think we discussed some ideas for this workflow a month or so back, but
it is confusing and I thought I would describe the idea here and see if
anyone else has a better way to do this:

The workflow is:

1- Register a household. In that form there is a question, how many
children are there in the household? (household_children_quantity). This
form is completed one time and in the form configuration,
household_children_quantity is used to update the case.

2- There is a follow up form to collect weight and height of all family
members including children. The idea is that rather than creating lots of
subcases from the registration form, there will be one form that will show
relevant groups of questions on each child until all the data has been
submitted. For example, the user goes the first time to a house with 7
children and is able to find 5 of them. She collects data from those 5 and
submits it. The next month she comes and finds one more child. She opens
the follow up form and only the relevant childrens’

Concept for the Follow up Form:

There would be ~6 questions about each child’s anthroprometry all entered
into a group. Assuming a maximum of 15 children in one household, these
questions would be copied 15 times such that there are not 15 groups
(child1_anthro, child2_anthro, etc.)

Simple-to-build but less-user-friendly solution:

On the form configuration page, save everything to the case and then load
all of the values into the case. This will have the effect of when you fill
out the form and submit it, next time you open it the values from the last
visit will already be populated. The user can just skip forward through
them.

Complicated-to-build but more-user-friendly solution:

Each of these groups would have a display condition that references the
data node household_children_quantity. This data node would be loaded on
the form configuration with the value from the registration form. So, for
example, the group child2_anthro would have the display condition:
household_children_quantity >= 2

To keep things simpler, you could have a question at the end of each
"group" of questions:

Is this child’s data complete? Yes or No

If yes this would set the value of that question (child1_data_complete)
to yes (1):

child1_data_complete = 1

Then you create a data node called child1_data_complete_prev

On the form settings you would select child1_data_complete_prev from
"loads data" and you would type child1_data_complete into the field. It
would look like this:

Loads data from the case:

child1_data_complete_prev loads data from child1_data_complete

This means that the data node *child1_data_complete_prev *will contain the
value from the previous time the form was filled out

Then for the group of questions related to child1 you set the display
condition to:

child1_data_complete_prev != 1

You would do the same thing for each of the children groups.

*NOTE: *You will need to be very careful with the updates the case/loads
the case settings.

I know that is pretty confusing so if anyone else has another suggestion or
wants to try to explain this more clearly, please feel free!

Jeremy

··· On Wed, Mar 20, 2013 at 1:29 PM, Sheel Shah wrote:

Hi Latika,

What is the workflow you have for each family member? Do you register
family members and do their anthoin the same visit? Do you have other
workflow you do for each family member after taking their antho?

If you do not have any other workflow after taking each family member’s
antho, you can close the case representing them.
https://confluence.dimagi.com/display/commcarepublic/Case+Management

Thanks,
Sheel

Are you registering each family member as a case in the system? Once
you’ve done the measurements for a particular family member, you can close
the case

On Wed, Mar 20, 2013 at 10:23 AM, Latika Sb latikasb007@gmail.com wrote:

Hi Cory,
We are doing study for Nutritionin community! In that we are
taking Anthropometry of Family member for eg. height & weight , date of
birth etc…

we create module for that, but we want data as in row and once we done
antho for one member next time that member will not shown in mobile it must
be hide from mobile and who is pending that will be shown only pl help us
how to do this?

sincerely,
latika


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Sheel Shah
Project Manager | Dimagi India
t: +91 1146704670 | m: +91 9560187282


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.
(+001) 434.962.4098 | EST

Hi Tim,

I’m not sure I exactly follow what you’re trying to do - but it sounds like
you want to hide some questions based on whether or not the barcode has
been scanned?

In that case, you need to put a display condition on the questions you want
to display only when the barcode is scanned, rather than the barcode
question itself.

For example, if you have a question with the id “barcode_question” and then
a question with the id “question_after_barcode”, you would put a display
condition on the question “question_after_barcode”: /data/barcode_question
!= ‘’

Let me know if this makes sense or if you are actually trying to do
something else!

Thanks,
Amelia

··· On Tue, Jul 15, 2014 at 6:34 AM, Tim wrote:

Hi All,

Found this post and understand the solution if revisiting but I have a
similar situation within the current form.

I have a number of barcodes to scan.

When the form is first shown it shows “Scan Barcode 1” with others being
hidden whilst their previous question is empty.

As the scans happen, the questions become visible.

My issue is hiding the previous question once complete. I get xData
warning fro circular references.
I have tried: . != ‘’ in current display value.
Setting a hidden value based on “Scan_Barcode_1” and using this as
reference for display.

I am sure there is a way, any thoughts?

Best

Tim


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Amelia,

Thanks for this, and I have got the solution you describe working.

Now I am trying to hide “barcode_question” once it has been scanned.

Best

Tim

··· On 15 Jul 2014 16:06, "Amelia Sagoff" wrote:

Hi Tim,

I’m not sure I exactly follow what you’re trying to do - but it sounds
like you want to hide some questions based on whether or not the barcode
has been scanned?

In that case, you need to put a display condition on the questions you
want to display only when the barcode is scanned, rather than the barcode
question itself.

For example, if you have a question with the id “barcode_question” and
then a question with the id “question_after_barcode”, you would put a
display condition on the question “question_after_barcode”:
/data/barcode_question != ‘’

Let me know if this makes sense or if you are actually trying to do
something else!

Thanks,
Amelia

On Tue, Jul 15, 2014 at 6:34 AM, Tim tim.butler.88@gmail.com wrote:

Hi All,

Found this post and understand the solution if revisiting but I have a
similar situation within the current form.

I have a number of barcodes to scan.

When the form is first shown it shows “Scan Barcode 1” with others being
hidden whilst their previous question is empty.

As the scans happen, the questions become visible.

My issue is hiding the previous question once complete. I get xData
warning fro circular references.
I have tried: . != ‘’ in current display value.
Setting a hidden value based on “Scan_Barcode_1” and using this as
reference for display.

I am sure there is a way, any thoughts?

Best

Tim


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Tim,

Curious why you are trying to hide barcode_question? It’s often valuable
for users to be able to go back and rescan the barcode if it did not read
correctly the first time. What value are you trying to get out of hiding
the barcode question after the user has scanned a barcode?

Amelia

··· On Wed, Jul 16, 2014 at 2:09 AM, Tim Butler wrote:

Hi Amelia,

Thanks for this, and I have got the solution you describe working.

Now I am trying to hide “barcode_question” once it has been scanned.

Best

Tim
On 15 Jul 2014 16:06, “Amelia Sagoff” asagoff@dimagi.com wrote:

Hi Tim,

I’m not sure I exactly follow what you’re trying to do - but it sounds
like you want to hide some questions based on whether or not the barcode
has been scanned?

In that case, you need to put a display condition on the questions you
want to display only when the barcode is scanned, rather than the barcode
question itself.

For example, if you have a question with the id “barcode_question” and
then a question with the id “question_after_barcode”, you would put a
display condition on the question “question_after_barcode”:
/data/barcode_question != ‘’

Let me know if this makes sense or if you are actually trying to do
something else!

Thanks,
Amelia

On Tue, Jul 15, 2014 at 6:34 AM, Tim tim.butler.88@gmail.com wrote:

Hi All,

Found this post and understand the solution if revisiting but I have a
similar situation within the current form.

I have a number of barcodes to scan.

When the form is first shown it shows “Scan Barcode 1” with others being
hidden whilst their previous question is empty.

As the scans happen, the questions become visible.

My issue is hiding the previous question once complete. I get xData
warning fro circular references.
I have tried: . != ‘’ in current display value.
Setting a hidden value based on “Scan_Barcode_1” and using this as
reference for display.

I am sure there is a way, any thoughts?

Best

Tim


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Amelia,

There maybe 50+ barcoded items.

Currently, that means every time you scan it goes back to the top of the
list.

I could make it so the barcodes were in reverse order - thus you come you
come to the latest?

Having said that, I would still like to be able to do this if possible.

Best

Tim

··· On 16 Jul 2014 14:32, "Amelia Sagoff" wrote:

Hi Tim,

Curious why you are trying to hide barcode_question? It’s often valuable
for users to be able to go back and rescan the barcode if it did not read
correctly the first time. What value are you trying to get out of hiding
the barcode question after the user has scanned a barcode?

Amelia

On Wed, Jul 16, 2014 at 2:09 AM, Tim Butler tim.butler.88@gmail.com wrote:

Hi Amelia,

Thanks for this, and I have got the solution you describe working.

Now I am trying to hide “barcode_question” once it has been scanned.

Best

Tim
On 15 Jul 2014 16:06, “Amelia Sagoff” asagoff@dimagi.com wrote:

Hi Tim,

I’m not sure I exactly follow what you’re trying to do - but it sounds
like you want to hide some questions based on whether or not the barcode
has been scanned?

In that case, you need to put a display condition on the questions you
want to display only when the barcode is scanned, rather than the barcode
question itself.

For example, if you have a question with the id “barcode_question” and
then a question with the id “question_after_barcode”, you would put a
display condition on the question “question_after_barcode”:
/data/barcode_question != ‘’

Let me know if this makes sense or if you are actually trying to do
something else!

Thanks,
Amelia

On Tue, Jul 15, 2014 at 6:34 AM, Tim tim.butler.88@gmail.com wrote:

Hi All,

Found this post and understand the solution if revisiting but I have a
similar situation within the current form.

I have a number of barcodes to scan.

When the form is first shown it shows “Scan Barcode 1” with others
being hidden whilst their previous question is empty.

As the scans happen, the questions become visible.

My issue is hiding the previous question once complete. I get xData
warning fro circular references.
I have tried: . != ‘’ in current display value.
Setting a hidden value based on “Scan_Barcode_1” and using this as
reference for display.

I am sure there is a way, any thoughts?

Best

Tim


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Tim,

I’m having trouble visualizing what you mean – can you give me a bit more
information about your current app workflow? It’d be helpful to know what
you mean by “list” and why scanning a barcode makes you go back to the top.
(Is this a question list in a form? Is it a list of forms in the form menu?
Something else?)

Thanks,
Amelia

··· On Wed, Jul 16, 2014 at 6:04 PM, Tim Butler wrote:

Hi Amelia,

There maybe 50+ barcoded items.

Currently, that means every time you scan it goes back to the top of the
list.

I could make it so the barcodes were in reverse order - thus you come you
come to the latest?

Having said that, I would still like to be able to do this if possible.

Best

Tim
On 16 Jul 2014 14:32, “Amelia Sagoff” asagoff@dimagi.com wrote:

Hi Tim,

Curious why you are trying to hide barcode_question? It’s often valuable
for users to be able to go back and rescan the barcode if it did not read
correctly the first time. What value are you trying to get out of hiding
the barcode question after the user has scanned a barcode?

Amelia

On Wed, Jul 16, 2014 at 2:09 AM, Tim Butler tim.butler.88@gmail.com wrote:

Hi Amelia,

Thanks for this, and I have got the solution you describe working.

Now I am trying to hide “barcode_question” once it has been scanned.

Best

Tim
On 15 Jul 2014 16:06, “Amelia Sagoff” asagoff@dimagi.com wrote:

Hi Tim,

I’m not sure I exactly follow what you’re trying to do - but it sounds
like you want to hide some questions based on whether or not the barcode
has been scanned?

In that case, you need to put a display condition on the questions you
want to display only when the barcode is scanned, rather than the barcode
question itself.

For example, if you have a question with the id “barcode_question” and
then a question with the id “question_after_barcode”, you would put a
display condition on the question “question_after_barcode”:
/data/barcode_question != ‘’

Let me know if this makes sense or if you are actually trying to do
something else!

Thanks,
Amelia

On Tue, Jul 15, 2014 at 6:34 AM, Tim tim.butler.88@gmail.com wrote:

Hi All,

Found this post and understand the solution if revisiting but I have a
similar situation within the current form.

I have a number of barcodes to scan.

When the form is first shown it shows “Scan Barcode 1” with others
being hidden whilst their previous question is empty.

As the scans happen, the questions become visible.

My issue is hiding the previous question once complete. I get xData
warning fro circular references.
I have tried: . != ‘’ in current display value.
Setting a hidden value based on “Scan_Barcode_1” and using this as
reference for display.

I am sure there is a way, any thoughts?

Best

Tim


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to a topic in the
Google Groups “commcare-users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Amelia,

I had the scan barcodes in one Question List. This meant that as you
returned to the list it was counting 1,2,3,4,5 etc which meant the next
Scan Barcode was at the bottom of the page, causing the user to scroll down.

I had another problem with the next Scan barcode not displaying without a
swipe left and right.

My solution has been to put each Scan Barcode in it own Question List and
then display this based on previous being completed on swipe. This seem to
be more robust and using the solution as designed rather than in another
way :slight_smile:

Best

Tim

··· On Thursday, 17 July 2014 14:28:01 UTC+1, Amelia Sagoff wrote: > > Hi Tim, > > I'm having trouble visualizing what you mean -- can you give me a bit more > information about your current app workflow? It'd be helpful to know what > you mean by "list" and why scanning a barcode makes you go back to the top. > (Is this a question list in a form? Is it a list of forms in the form menu? > Something else?) > > Thanks, > Amelia > > > On Wed, Jul 16, 2014 at 6:04 PM, Tim Butler <tim.bu...@gmail.com > wrote: > >> Hi Amelia, >> >> There maybe 50+ barcoded items. >> >> Currently, that means every time you scan it goes back to the top of the >> list. >> >> I could make it so the barcodes were in reverse order - thus you come you >> come to the latest? >> >> Having said that, I would still like to be able to do this if possible. >> >> Best >> >> Tim >> On 16 Jul 2014 14:32, "Amelia Sagoff" <asa...@dimagi.com > wrote: >> >>> Hi Tim, >>> >>> Curious why you are trying to hide barcode_question? It's often valuable >>> for users to be able to go back and rescan the barcode if it did not read >>> correctly the first time. What value are you trying to get out of hiding >>> the barcode question after the user has scanned a barcode? >>> >>> Amelia >>> >>> >>> On Wed, Jul 16, 2014 at 2:09 AM, Tim Butler <tim.bu...@gmail.com > wrote: >>> >>>> Hi Amelia, >>>> >>>> Thanks for this, and I have got the solution you describe working. >>>> >>>> Now I am trying to hide "barcode_question" once it has been scanned. >>>> >>>> Best >>>> >>>> Tim >>>> On 15 Jul 2014 16:06, "Amelia Sagoff" <asa...@dimagi.com > wrote: >>>> >>>>> Hi Tim, >>>>> >>>>> I'm not sure I exactly follow what you're trying to do - but it sounds >>>>> like you want to hide some questions based on whether or not the barcode >>>>> has been scanned? >>>>> >>>>> In that case, you need to put a display condition on the questions you >>>>> want to display only when the barcode is scanned, rather than the barcode >>>>> question itself. >>>>> >>>>> For example, if you have a question with the id "barcode_question" and >>>>> then a question with the id "question_after_barcode", you would put a >>>>> display condition on the question "question_after_barcode": >>>>> /data/barcode_question != '' >>>>> >>>>> Let me know if this makes sense or if you are actually trying to do >>>>> something else! >>>>> >>>>> Thanks, >>>>> Amelia >>>>> >>>>> >>>>> On Tue, Jul 15, 2014 at 6:34 AM, Tim <tim.bu...@gmail.com > wrote: >>>>> >>>>>> Hi All, >>>>>> >>>>>> >>>>>> Found this post and understand the solution if revisiting but I have >>>>>> a similar situation within the current form. >>>>>> >>>>>> I have a number of barcodes to scan. >>>>>> >>>>>> When the form is first shown it shows "Scan Barcode 1" with others >>>>>> being hidden whilst their previous question is empty. >>>>>> >>>>>> As the scans happen, the questions become visible. >>>>>> >>>>>> My issue is hiding the previous question once complete. I get xData >>>>>> warning fro circular references. >>>>>> I have tried: . != '' in current display value. >>>>>> Setting a hidden value based on "Scan_Barcode_1" and using this as >>>>>> reference for display. >>>>>> >>>>>> I am sure there is a way, any thoughts? >>>>>> >>>>>> Best >>>>>> >>>>>> Tim >>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "commcare-users" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to commcare-user...@googlegroups.com . >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to a topic in the >>>>> Google Groups "commcare-users" group. >>>>> To unsubscribe from this topic, visit >>>>> https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe >>>>> . >>>>> To unsubscribe from this group and all its topics, send an email to >>>>> commcare-user...@googlegroups.com . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "commcare-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to commcare-user...@googlegroups.com . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "commcare-users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/commcare-users/Jos_DmoLN5E/unsubscribe >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> commcare-user...@googlegroups.com . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >