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