Automatic form updating until case is closed

Hi All,

I am currently developing an app for an Enterprise Development Program.
The program life-cycle is 10 meetings and during each meeting a survey form
will be captured.
Is it possible to have a form entry defined as “Meeting number” which
automatically updates itself one meeting after another and it closes the
case when the 10th meeting is reached?

Thank you all!

Alberto Gualtieri
MEL Officer at SaveAct
Pietermaritzburg, South Africa

Hi Alberto,

This should be possible using a counter
https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter
for
each case and a case closing condition
https://confluence.dimagi.com/display/ccinternal/9.+Closing+Cases (bottom
of page)

cheers,
Will

··· On Fri, Feb 3, 2017 at 5:04 PM, Alberto Gualtieri wrote:

Hi All,

I am currently developing an app for an Enterprise Development Program.
The program life-cycle is 10 meetings and during each meeting a survey
form will be captured.
Is it possible to have a form entry defined as “Meeting number” which
automatically updates itself one meeting after another and it closes the
case when the 10th meeting is reached?

Thank you all!

Alberto Gualtieri
MEL Officer at SaveAct
Pietermaritzburg, South Africa


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

I have been trying to use coalesce to perform the counting but it doesn’t
work. This is the step by step approach I used

  1. I created a hidden value called: meeting_number
  2. In case management I assigned to the hidden question the case property
    meeting_number
  3. In the form question, under display condition I typed the following
    code: coalesce(#case/meeting_number,0)+1

However, when I download the report under the meeting_number column no
information are displayed.

Any suggestion? Thank you!

··· On Fri, Feb 3, 2017 at 7:17 PM, William Pride wrote:

Hi Alberto,

This should be possible using a counter
https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter for
each case and a case closing condition
https://confluence.dimagi.com/display/ccinternal/9.+Closing+Cases (bottom
of page)

cheers,
Will

On Fri, Feb 3, 2017 at 5:04 PM, Alberto Gualtieri koderrimo@gmail.com wrote:

Hi All,

I am currently developing an app for an Enterprise Development Program.
The program life-cycle is 10 meetings and during each meeting a survey
form will be captured.
Is it possible to have a form entry defined as “Meeting number” which
automatically updates itself one meeting after another and it closes the
case when the 10th meeting is reached?

Thank you all!

Alberto Gualtieri
MEL Officer at SaveAct
Pietermaritzburg, South Africa


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/yGWaBZVpK8Y/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.


Alberto Gualtieri
United Nations University - MERIT
Master of Public Policy and Human Development, 2016
ITA +393389164740

Hi Alberto,

To confirm you should have a case property meeting_number and then a hidden
value named, for example, new_meeting_number. This hidden value should take
as its calculation condition (rather than display condition)
coalesce(#case/meeting_number,0) + 1 and then this new value should be
saved to the case property meeting_number.

Cheers,
Will

··· On Mon, Feb 6, 2017 at 3:42 PM, Alberto Gualtieri < alberto.gualtieri1@gmail.com> wrote:

Hi Will,

I have been trying to use coalesce to perform the counting but it doesn’t
work. This is the step by step approach I used

  1. I created a hidden value called: meeting_number
  2. In case management I assigned to the hidden question the case property
    meeting_number
  3. In the form question, under display condition I typed the following
    code: coalesce(#case/meeting_number,0)+1

However, when I download the report under the meeting_number column no
information are displayed.

Any suggestion? Thank you!

On Fri, Feb 3, 2017 at 7:17 PM, William Pride wpride@dimagi.com wrote:

Hi Alberto,

This should be possible using a counter
https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter for
each case and a case closing condition
https://confluence.dimagi.com/display/ccinternal/9.+Closing+Cases (bottom
of page)

cheers,
Will

On Fri, Feb 3, 2017 at 5:04 PM, Alberto Gualtieri koderrimo@gmail.com wrote:

Hi All,

I am currently developing an app for an Enterprise Development Program.
The program life-cycle is 10 meetings and during each meeting a survey
form will be captured.
Is it possible to have a form entry defined as “Meeting number” which
automatically updates itself one meeting after another and it closes the
case when the 10th meeting is reached?

Thank you all!

Alberto Gualtieri
MEL Officer at SaveAct
Pietermaritzburg, South Africa


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/to
pic/commcare-users/yGWaBZVpK8Y/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.


Alberto Gualtieri
United Nations University - MERIT
Master of Public Policy and Human Development, 2016
ITA +393389164740 <+39%20338%20916%204740>


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

Thank you very much it works!

··· On Mon, Feb 6, 2017 at 6:15 PM, William Pride wrote:

Hi Alberto,

To confirm you should have a case property meeting_number and then a
hidden value named, for example, new_meeting_number. This hidden value
should take as its calculation condition (rather than display condition)
coalesce(#case/meeting_number,0) + 1 and then this new value should be
saved to the case property meeting_number.

Cheers,
Will

On Mon, Feb 6, 2017 at 3:42 PM, Alberto Gualtieri < alberto.gualtieri1@gmail.com> wrote:

Hi Will,

I have been trying to use coalesce to perform the counting but it doesn’t
work. This is the step by step approach I used

  1. I created a hidden value called: meeting_number
  2. In case management I assigned to the hidden question the case property
    meeting_number
  3. In the form question, under display condition I typed the following
    code: coalesce(#case/meeting_number,0)+1

However, when I download the report under the meeting_number column no
information are displayed.

Any suggestion? Thank you!

On Fri, Feb 3, 2017 at 7:17 PM, William Pride wpride@dimagi.com wrote:

Hi Alberto,

This should be possible using a counter
https://confluence.dimagi.com/display/commcarepublic/Incrementing+a+counter for
each case and a case closing condition
https://confluence.dimagi.com/display/ccinternal/9.+Closing+Cases (bottom
of page)

cheers,
Will

On Fri, Feb 3, 2017 at 5:04 PM, Alberto Gualtieri koderrimo@gmail.com wrote:

Hi All,

I am currently developing an app for an Enterprise Development Program.
The program life-cycle is 10 meetings and during each meeting a survey
form will be captured.
Is it possible to have a form entry defined as “Meeting number” which
automatically updates itself one meeting after another and it closes the
case when the 10th meeting is reached?

Thank you all!

Alberto Gualtieri
MEL Officer at SaveAct
Pietermaritzburg, South Africa


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/to
pic/commcare-users/yGWaBZVpK8Y/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.


Alberto Gualtieri
United Nations University - MERIT
Master of Public Policy and Human Development, 2016
ITA +393389164740 <+39%20338%20916%204740>


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/yGWaBZVpK8Y/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.


Alberto Gualtieri
United Nations University - MERIT
Master of Public Policy and Human Development, 2016
ITA +393389164740