Case update in handwritten Xform

Hi guys,
We are using handwritten Xforms in our application ( not made through form
designer). We need to update a few cases based on data recorded during the
filling of the form on the mobile device.
Eg: A group of people see a video, so this video should be added to the
list of videos that they have seen.

  • How can this be done ?
  • Is there a way to ensure that this only happens once the form is
    submitted ?

Yashseth,

Just so we’re on the same page, your goal is to record a field in (1 -> N)
different cases in the same form?

-Clayton

··· On Mon, Aug 26, 2013 at 7:50 AM, yashseth wrote:

Hi guys,
We are using handwritten Xforms in our application ( not made through form
designer). We need to update a few cases based on data recorded during the
filling of the form on the mobile device.
Eg: A group of people see a video, so this video should be added to the
list of videos that they have seen.

  • How can this be done ?
  • Is there a way to ensure that this only happens once the form is
    submitted ?


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.

Yes that’s right. But the primary goal being to update the value of an
attribute of a case. The cases to be updated will be filtered on one of
their attributes .

··· On Aug 26, 2013 10:56 PM, "Clayton Sims" wrote:

Yashseth,

Just so we’re on the same page, your goal is to record a field in (1 -> N)
different cases in the same form?

-Clayton

On Mon, Aug 26, 2013 at 7:50 AM, yashseth yash@digitalgreen.org wrote:

Hi guys,
We are using handwritten Xforms in our application ( not made through
form designer). We need to update a few cases based on data recorded during
the filling of the form on the mobile device.
Eg: A group of people see a video, so this video should be added to the
list of videos that they have seen.

  • How can this be done ?
  • Is there a way to ensure that this only happens once the form is
    submitted ?


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.


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/rxvCL0X7uBI/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/groups/opt_out.

Gotcha,

So you want to display a list of the cases that match some filter, and then
select which of those cases will have their property updated?

-Clayton

··· On Mon, Aug 26, 2013 at 1:32 PM, Yash Seth wrote:

Yes that’s right. But the primary goal being to update the value of an
attribute of a case. The cases to be updated will be filtered on one of
their attributes .
On Aug 26, 2013 10:56 PM, “Clayton Sims” csims@dimagi.com wrote:

Yashseth,

Just so we’re on the same page, your goal is to record a field in (1 ->
N) different cases in the same form?

-Clayton

On Mon, Aug 26, 2013 at 7:50 AM, yashseth yash@digitalgreen.org wrote:

Hi guys,
We are using handwritten Xforms in our application ( not made through
form designer). We need to update a few cases based on data recorded during
the filling of the form on the mobile device.
Eg: A group of people see a video, so this video should be added to the
list of videos that they have seen.

  • How can this be done ?
  • Is there a way to ensure that this only happens once the form is
    submitted ?


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.


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/rxvCL0X7uBI/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/groups/opt_out.


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.

That’s right.

··· On Aug 26, 2013 11:36 PM, "Clayton Sims" wrote:

Gotcha,

So you want to display a list of the cases that match some filter, and
then select which of those cases will have their property updated?

-Clayton

On Mon, Aug 26, 2013 at 1:32 PM, Yash Seth yash@digitalgreen.org wrote:

Yes that’s right. But the primary goal being to update the value of an
attribute of a case. The cases to be updated will be filtered on one of
their attributes .
On Aug 26, 2013 10:56 PM, “Clayton Sims” csims@dimagi.com wrote:

Yashseth,

Just so we’re on the same page, your goal is to record a field in (1 ->
N) different cases in the same form?

-Clayton

On Mon, Aug 26, 2013 at 7:50 AM, yashseth yash@digitalgreen.org wrote:

Hi guys,
We are using handwritten Xforms in our application ( not made through
form designer). We need to update a few cases based on data recorded during
the filling of the form on the mobile device.
Eg: A group of people see a video, so this video should be added to the
list of videos that they have seen.

  • How can this be done ?
  • Is there a way to ensure that this only happens once the form is
    submitted ?


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.


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/rxvCL0X7uBI/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/groups/opt_out.


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.


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/rxvCL0X7uBI/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/groups/opt_out.

So you can do this with CommCare by inserting some variables and
calculations to build a repeat which indexes into the multiselect results.
This would look something like:

<num_children/>
<cur_children/>

<child_info index="" id="">

</child_info/>

If you inserted a update block into the repeat, it will be able to
create all of the relevant cases. You shouldn’t need any actual questions
in the repeat block itself, only hte updates.

-Clayton

··· On Mon, Aug 26, 2013 at 2:07 PM, Yash Seth wrote:

That’s right.
On Aug 26, 2013 11:36 PM, “Clayton Sims” csims@dimagi.com wrote:

Gotcha,

So you want to display a list of the cases that match some filter, and
then select which of those cases will have their property updated?

-Clayton

On Mon, Aug 26, 2013 at 1:32 PM, Yash Seth yash@digitalgreen.org wrote:

Yes that’s right. But the primary goal being to update the value of an
attribute of a case. The cases to be updated will be filtered on one of
their attributes .
On Aug 26, 2013 10:56 PM, “Clayton Sims” csims@dimagi.com wrote:

Yashseth,

Just so we’re on the same page, your goal is to record a field in (1 ->
N) different cases in the same form?

-Clayton

On Mon, Aug 26, 2013 at 7:50 AM, yashseth yash@digitalgreen.orgwrote:

Hi guys,
We are using handwritten Xforms in our application ( not made through
form designer). We need to update a few cases based on data recorded during
the filling of the form on the mobile device.
Eg: A group of people see a video, so this video should be added to
the list of videos that they have seen.

  • How can this be done ?
  • Is there a way to ensure that this only happens once the form is
    submitted ?


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.


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/rxvCL0X7uBI/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/groups/opt_out.


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.


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/rxvCL0X7uBI/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/groups/opt_out.


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.