Proper message not being Displayed

Hi:

We are using commcare to track pregnant women and remind pregnant women for
their ANC and PNC visits. The app we created using commcare uses LMP to
display messages to our community workers, who later call or visit pregnant
women for follow up visits. Being said that, proper message is not being
displayed to our community workers for follow up.

This is an example: * if(today()-date(/data/baby_delivery_date)>=3,“Follow
up for 3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

I have a women who gave birth to a child on June 6,2015. However, I still
see *“Not yet due for 3rd day PNC visit.” *which is not correct. Any advice
is highly appreciated.

Anybody?

··· On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote: > > Hi: > > We are using commcare to track pregnant women and remind pregnant women > for their ANC and PNC visits. The app we created using commcare uses LMP to > display messages to our community workers, who later call or visit pregnant > women for follow up visits. Being said that, proper message is not being > displayed to our community workers for follow up. > > This is an example: * if(today()-date(/data/baby_delivery_date)>=3,"Follow > up for 3rd day PNC visit.","Not yet due for 3rd day PNC visit.")* > > I have a women who gave birth to a child on June 6,2015. However, I still > see *"Not yet due for 3rd day PNC visit." *which is not correct. Any > advice is highly appreciated. >

HI Bibek,

Don’t see anything incorrect in the expression. Is that expression just an
example or is it the full expression? Maybe the problem could lie in the
extended expression.

··· On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari wrote:

Anybody?

On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote:

Hi:

We are using commcare to track pregnant women and remind pregnant women
for their ANC and PNC visits. The app we created using commcare uses LMP to
display messages to our community workers, who later call or visit pregnant
women for follow up visits. Being said that, proper message is not being
displayed to our community workers for follow up.

This is an example: * if(today()-date(/data/baby_delivery_date)>=3,“Follow
up for 3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

I have a women who gave birth to a child on June 6,2015. However, I still
see *“Not yet due for 3rd day PNC visit.” *which is not correct. Any
advice is highly appreciated.


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/

Hi Sri:

This is a full expression. Sometime it displays properly sometime not. I
have no clue. Any help is appreciated.

··· On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote: > > HI Bibek, > > Don't see anything incorrect in the expression. Is that expression just an > example or is it the full expression? Maybe the problem could lie in the > extended expression. > > > > > On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari <bibeka...@gmail.com > wrote: > >> Anybody? >> >> >> On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote: >>> >>> Hi: >>> >>> We are using commcare to track pregnant women and remind pregnant women >>> for their ANC and PNC visits. The app we created using commcare uses LMP to >>> display messages to our community workers, who later call or visit pregnant >>> women for follow up visits. Being said that, proper message is not being >>> displayed to our community workers for follow up. >>> >>> This is an example: * if(today()-date(/data/baby_delivery_date)>=3,"Follow >>> up for 3rd day PNC visit.","Not yet due for 3rd day PNC visit.")* >>> >>> I have a women who gave birth to a child on June 6,2015. However, I >>> still see *"Not yet due for 3rd day PNC visit." *which is not correct. >>> Any advice is highly appreciated. >>> >> -- >> 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. >> > > > > -- > *Sri Ranganathan* > > Dimagi | Project Manager > D - 1/28 Vasant Vihar | New Delhi 110057, India > t: +91 11.46704670 | m: +91 9886752661 > web: http://www.dimagi.com/ >

Hi Bibek,

It might work better if you cast your expression as an integer. So rewrite
the expression as:

if(int(today()-date(/data/baby_delivery_date)) >= 3,“Follow up for 3rd day
PNC visit.”,“Not yet due for 3rd day PNC visit.”)

··· On Thu, Jun 11, 2015 at 2:22 PM, Bibek Adhikari wrote:

Hi Sri:

This is a full expression. Sometime it displays properly sometime not. I
have no clue. Any help is appreciated.

On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote:

HI Bibek,

Don’t see anything incorrect in the expression. Is that expression just
an example or is it the full expression? Maybe the problem could lie in the
extended expression.

On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari bibeka...@gmail.com wrote:

Anybody?

On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote:

Hi:

We are using commcare to track pregnant women and remind pregnant women
for their ANC and PNC visits. The app we created using commcare uses LMP to
display messages to our community workers, who later call or visit pregnant
women for follow up visits. Being said that, proper message is not being
displayed to our community workers for follow up.

This is an example: * if(today()-date(/data/baby_delivery_date)>=3,“Follow
up for 3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

I have a women who gave birth to a child on June 6,2015. However, I
still see *“Not yet due for 3rd day PNC visit.” *which is not correct.
Any advice is highly appreciated.


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/

Hi Sri:

I will try and let you know. Thank you for your advice.

··· On Thursday, June 11, 2015 at 2:49:21 PM UTC+5:45, Sri Ranganathan wrote: > > Hi Bibek, > > It might work better if you cast your expression as an integer. So rewrite > the expression as: > > if(int(today()-date(/data/baby_delivery_date)) >= 3,"Follow up for 3rd day > PNC visit.","Not yet due for 3rd day PNC visit.") > > > On Thu, Jun 11, 2015 at 2:22 PM, Bibek Adhikari <bibeka...@gmail.com > wrote: > >> Hi Sri: >> >> This is a full expression. Sometime it displays properly sometime not. I >> have no clue. Any help is appreciated. >> >> On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote: >>> >>> HI Bibek, >>> >>> Don't see anything incorrect in the expression. Is that expression just >>> an example or is it the full expression? Maybe the problem could lie in the >>> extended expression. >>> >>> >>> >>> >>> On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari wrote: >>> >>>> Anybody? >>>> >>>> >>>> On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote: >>>>> >>>>> Hi: >>>>> >>>>> We are using commcare to track pregnant women and remind pregnant >>>>> women for their ANC and PNC visits. The app we created using commcare uses >>>>> LMP to display messages to our community workers, who later call or visit >>>>> pregnant women for follow up visits. Being said that, proper message is not >>>>> being displayed to our community workers for follow up. >>>>> >>>>> This is an example: * if(today()-date(/data/baby_delivery_date)>=3,"Follow >>>>> up for 3rd day PNC visit.","Not yet due for 3rd day PNC visit.")* >>>>> >>>>> I have a women who gave birth to a child on June 6,2015. However, I >>>>> still see *"Not yet due for 3rd day PNC visit." *which is not >>>>> correct. Any advice is highly appreciated. >>>>> >>>> -- >>>> 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. >>>> >>> >>> >>> >>> -- >>> *Sri Ranganathan* >>> >>> Dimagi | Project Manager >>> D - 1/28 Vasant Vihar | New Delhi 110057, India >>> t: +91 11.46704670 | m: +91 9886752661 >>> web: http://www.dimagi.com/ >>> >> -- >> 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. >> > > > > -- > *Sri Ranganathan* > > Dimagi | Project Manager > D - 1/28 Vasant Vihar | New Delhi 110057, India > t: +91 11.46704670 | m: +91 9886752661 > web: http://www.dimagi.com/ >

Hi bibek

Have you tried this:

  • if(date(today())-date(/data/baby_delivery_date)>=3,“Follow up for 3rd day
    PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

once we had same problem it helped us.

thanks

regards

aman

··· On Thu, Jun 11, 2015 at 4:20 PM, Bibek Adhikari wrote:

Hi Sri:

I will try and let you know. Thank you for your advice.

On Thursday, June 11, 2015 at 2:49:21 PM UTC+5:45, Sri Ranganathan wrote:

Hi Bibek,

It might work better if you cast your expression as an integer. So
rewrite the expression as:

if(int(today()-date(/data/baby_delivery_date)) >= 3,“Follow up for 3rd
day PNC visit.”,“Not yet due for 3rd day PNC visit.”)

On Thu, Jun 11, 2015 at 2:22 PM, Bibek Adhikari bibeka...@gmail.com wrote:

Hi Sri:

This is a full expression. Sometime it displays properly sometime not. I
have no clue. Any help is appreciated.

On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote:

HI Bibek,

Don’t see anything incorrect in the expression. Is that expression just
an example or is it the full expression? Maybe the problem could lie in the
extended expression.

On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari bibeka...@gmail.com wrote:

Anybody?

On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote:

Hi:

We are using commcare to track pregnant women and remind pregnant
women for their ANC and PNC visits. The app we created using commcare uses
LMP to display messages to our community workers, who later call or visit
pregnant women for follow up visits. Being said that, proper message is not
being displayed to our community workers for follow up.

This is an example: * if(today()-date(/data/baby_delivery_date)>=3,“Follow
up for 3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

I have a women who gave birth to a child on June 6,2015. However, I
still see *“Not yet due for 3rd day PNC visit.” *which is not
correct. Any advice is highly appreciated.


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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.

Bibek,

Can I ask: Are you displaying the date input and the message on the same
screen using a Question List?

I’ve heard reports that on some devices messages may or may not be updated
properly when the date widget changes.

Can you try:

  1. Setting the input date to a correct value
  2. Seeing the incorrect error message
  3. Navigating Back to the previous page
  4. Navigating Forward to the date value
  5. Reporting whether the message has been replaced by the correct message.

If this occurs, can you please report an issue through CommCareHQ so our
support team can follow up on the bug?

-Clayton

··· On Thu, Jun 11, 2015 at 8:07 AM, Aman Sen wrote:

Hi bibek

Have you tried this:

  • if(date(today())-date(/data/baby_delivery_date)>=3,“Follow up for 3rd
    day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

once we had same problem it helped us.

thanks

regards

aman

On Thu, Jun 11, 2015 at 4:20 PM, Bibek Adhikari bibekadhikari@gmail.com wrote:

Hi Sri:

I will try and let you know. Thank you for your advice.

On Thursday, June 11, 2015 at 2:49:21 PM UTC+5:45, Sri Ranganathan wrote:

Hi Bibek,

It might work better if you cast your expression as an integer. So
rewrite the expression as:

if(int(today()-date(/data/baby_delivery_date)) >= 3,“Follow up for 3rd
day PNC visit.”,“Not yet due for 3rd day PNC visit.”)

On Thu, Jun 11, 2015 at 2:22 PM, Bibek Adhikari bibeka...@gmail.com wrote:

Hi Sri:

This is a full expression. Sometime it displays properly sometime not.
I have no clue. Any help is appreciated.

On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote:

HI Bibek,

Don’t see anything incorrect in the expression. Is that expression
just an example or is it the full expression? Maybe the problem could lie
in the extended expression.

On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari bibeka...@gmail.com wrote:

Anybody?

On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote:

Hi:

We are using commcare to track pregnant women and remind pregnant
women for their ANC and PNC visits. The app we created using commcare uses
LMP to display messages to our community workers, who later call or visit
pregnant women for follow up visits. Being said that, proper message is not
being displayed to our community workers for follow up.

This is an example: * if(today()-date(/data/baby_delivery_date)>=3,“Follow
up for 3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

I have a women who gave birth to a child on June 6,2015. However, I
still see *“Not yet due for 3rd day PNC visit.” *which is not
correct. Any advice is highly appreciated.


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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 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 Clayton and Aman:

I tried both ideas, however, both ideas DIDN’T work.

@Clayton - I am displaying that message in case list so that an user can
follow up and remind new mother about the third day test and so forth.

··· On Thursday, June 11, 2015 at 8:35:45 PM UTC+5:45, Clayton Sims wrote: > > Bibek, > > Can I ask: Are you displaying the date input and the message on the same > screen using a Question List? > > I've heard reports that on some devices messages may or may not be updated > properly when the date widget changes. > > Can you try: > > 1) Setting the input date to a correct value > 2) Seeing the incorrect error message > 3) Navigating Back to the previous page > 4) Navigating Forward to the date value > 5) Reporting whether the message has been replaced by the correct message. > > If this occurs, can you please report an issue through CommCareHQ so our > support team can follow up on the bug? > > -Clayton > > On Thu, Jun 11, 2015 at 8:07 AM, Aman Sen <ama...@gmail.com > wrote: > >> Hi bibek >> >> Have you tried this: >> >> * if(date(today())-date(/data/baby_delivery_date)>=3,"Follow up for 3rd >> day PNC visit.","Not yet due for 3rd day PNC visit.")* >> >> *once we had same problem it helped us.* >> >> *thanks* >> >> *regards* >> >> *aman* >> >> On Thu, Jun 11, 2015 at 4:20 PM, Bibek Adhikari <bibeka...@gmail.com > wrote: >> >>> Hi Sri: >>> >>> I will try and let you know. Thank you for your advice. >>> >>> On Thursday, June 11, 2015 at 2:49:21 PM UTC+5:45, Sri Ranganathan wrote: >>>> >>>> Hi Bibek, >>>> >>>> It might work better if you cast your expression as an integer. So >>>> rewrite the expression as: >>>> >>>> if(int(today()-date(/data/baby_delivery_date)) >= 3,"Follow up for 3rd >>>> day PNC visit.","Not yet due for 3rd day PNC visit.") >>>> >>>> >>>> On Thu, Jun 11, 2015 at 2:22 PM, Bibek Adhikari wrote: >>>> >>>>> Hi Sri: >>>>> >>>>> This is a full expression. Sometime it displays properly sometime not. >>>>> I have no clue. Any help is appreciated. >>>>> >>>>> On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote: >>>>>> >>>>>> HI Bibek, >>>>>> >>>>>> Don't see anything incorrect in the expression. Is that expression >>>>>> just an example or is it the full expression? Maybe the problem could lie >>>>>> in the extended expression. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari wrote: >>>>>> >>>>>>> Anybody? >>>>>>> >>>>>>> >>>>>>> On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote: >>>>>>>> >>>>>>>> Hi: >>>>>>>> >>>>>>>> We are using commcare to track pregnant women and remind pregnant >>>>>>>> women for their ANC and PNC visits. The app we created using commcare uses >>>>>>>> LMP to display messages to our community workers, who later call or visit >>>>>>>> pregnant women for follow up visits. Being said that, proper message is not >>>>>>>> being displayed to our community workers for follow up. >>>>>>>> >>>>>>>> This is an example: * if(today()-date(/data/baby_delivery_date)>=3,"Follow >>>>>>>> up for 3rd day PNC visit.","Not yet due for 3rd day PNC visit.")* >>>>>>>> >>>>>>>> I have a women who gave birth to a child on June 6,2015. However, I >>>>>>>> still see *"Not yet due for 3rd day PNC visit." *which is not >>>>>>>> correct. Any advice is highly appreciated. >>>>>>>> >>>>>>> -- >>>>>>> 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. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Sri Ranganathan* >>>>>> >>>>>> Dimagi | Project Manager >>>>>> D - 1/28 Vasant Vihar | New Delhi 110057, India >>>>>> t: +91 11.46704670 | m: +91 9886752661 >>>>>> web: http://www.dimagi.com/ >>>>>> >>>>> -- >>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> *Sri Ranganathan* >>>> >>>> Dimagi | Project Manager >>>> D - 1/28 Vasant Vihar | New Delhi 110057, India >>>> t: +91 11.46704670 | m: +91 9886752661 >>>> web: http://www.dimagi.com/ >>>> >>> -- >>> 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 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. >> > >

Bibek,

If you’re displaying this in a case list then you might want to look into late
flags
https://confluence.dimagi.com/display/commcarepublic/Case+List+and+Case+Detail+Configuration?src=search#CaseListandCaseDetailConfiguration-DisplayProperties
for
accomplishing this.

Also please note that within the case list you don’t use the same
’/data/baby_delivery_date’ pattern as you do within the form. Instead you
just refer to it as ‘baby_delivery_data’ (assuming that property has been
saved to the case).

Best,
Will

··· On Fri, Jun 12, 2015 at 7:00 AM Bibek Adhikari wrote:

Hi Clayton and Aman:

I tried both ideas, however, both ideas DIDN’T work.

@Clayton - I am displaying that message in case list so that an user can
follow up and remind new mother about the third day test and so forth.

On Thursday, June 11, 2015 at 8:35:45 PM UTC+5:45, Clayton Sims wrote:

Bibek,

Can I ask: Are you displaying the date input and the message on the same
screen using a Question List?

I’ve heard reports that on some devices messages may or may not be
updated properly when the date widget changes.

Can you try:

  1. Setting the input date to a correct value
  2. Seeing the incorrect error message
  3. Navigating Back to the previous page
  4. Navigating Forward to the date value
  5. Reporting whether the message has been replaced by the correct message.

If this occurs, can you please report an issue through CommCareHQ so our
support team can follow up on the bug?

-Clayton

On Thu, Jun 11, 2015 at 8:07 AM, Aman Sen ama...@gmail.com wrote:

Hi bibek

Have you tried this:

  • if(date(today())-date(/data/baby_delivery_date)>=3,“Follow up for 3rd
    day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

once we had same problem it helped us.

thanks

regards

aman

On Thu, Jun 11, 2015 at 4:20 PM, Bibek Adhikari bibeka...@gmail.com wrote:

Hi Sri:

I will try and let you know. Thank you for your advice.

On Thursday, June 11, 2015 at 2:49:21 PM UTC+5:45, Sri Ranganathan wrote:

Hi Bibek,

It might work better if you cast your expression as an integer. So
rewrite the expression as:

if(int(today()-date(/data/baby_delivery_date)) >= 3,“Follow up for 3rd
day PNC visit.”,“Not yet due for 3rd day PNC visit.”)

On Thu, Jun 11, 2015 at 2:22 PM, Bibek Adhikari bibeka...@gmail.com wrote:

Hi Sri:

This is a full expression. Sometime it displays properly sometime
not. I have no clue. Any help is appreciated.

On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote:

HI Bibek,

Don’t see anything incorrect in the expression. Is that expression
just an example or is it the full expression? Maybe the problem could lie
in the extended expression.

On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari <bibeka...@gmail.com wrote:

Anybody?

On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote:

Hi:

We are using commcare to track pregnant women and remind pregnant
women for their ANC and PNC visits. The app we created using commcare uses
LMP to display messages to our community workers, who later call or visit
pregnant women for follow up visits. Being said that, proper message is not
being displayed to our community workers for follow up.

This is an example: * if(today()-date(/data/baby_delivery_date)>=3,“Follow
up for 3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

I have a women who gave birth to a child on June 6,2015. However,
I still see *“Not yet due for 3rd day PNC visit.” *which is not
correct. Any advice is highly appreciated.


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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 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 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 Clayton:

I tried that as well but no luck.

@ William:

I tried that as well but no luck either.

Any more suggestions or thoughts? Please.

··· On Friday, June 12, 2015 at 8:38:54 PM UTC+5:45, William Pride wrote: > > Bibek, > > If you're displaying this in a case list then you might want to look into late > flags > for > accomplishing this. > > Also please note that within the case list you don't use the same > '/data/baby_delivery_date' pattern as you do within the form. Instead you > just refer to it as 'baby_delivery_data' (assuming that property has been > saved to the case). > > Best, > Will > > On Fri, Jun 12, 2015 at 7:00 AM Bibek Adhikari <bibeka...@gmail.com > wrote: > >> Hi Clayton and Aman: >> >> I tried both ideas, however, both ideas DIDN'T work. >> >> @Clayton - I am displaying that message in case list so that an user can >> follow up and remind new mother about the third day test and so forth. >> >> >> On Thursday, June 11, 2015 at 8:35:45 PM UTC+5:45, Clayton Sims wrote: >> >>> Bibek, >>> >>> Can I ask: Are you displaying the date input and the message on the same >>> screen using a Question List? >>> >>> I've heard reports that on some devices messages may or may not be >>> updated properly when the date widget changes. >>> >>> Can you try: >>> >>> 1) Setting the input date to a correct value >>> 2) Seeing the incorrect error message >>> 3) Navigating Back to the previous page >>> 4) Navigating Forward to the date value >>> 5) Reporting whether the message has been replaced by the correct >>> message. >>> >>> If this occurs, can you please report an issue through CommCareHQ so our >>> support team can follow up on the bug? >>> >>> -Clayton >>> >> On Thu, Jun 11, 2015 at 8:07 AM, Aman Sen wrote: >>> >> Hi bibek >>>> >>>> Have you tried this: >>>> >>>> * if(date(today())-date(/data/baby_delivery_date)>=3,"Follow up for 3rd >>>> day PNC visit.","Not yet due for 3rd day PNC visit.")* >>>> >>>> *once we had same problem it helped us.* >>>> >>>> *thanks* >>>> >>>> *regards* >>>> >>>> *aman* >>>> >>> >>>> On Thu, Jun 11, 2015 at 4:20 PM, Bibek Adhikari wrote: >>>> >>>>> Hi Sri: >>>>> >>>>> I will try and let you know. Thank you for your advice. >>>>> >>>>> On Thursday, June 11, 2015 at 2:49:21 PM UTC+5:45, Sri Ranganathan wrote: >>>>>> >>>>>> Hi Bibek, >>>>>> >>>>>> It might work better if you cast your expression as an integer. So >>>>>> rewrite the expression as: >>>>>> >>>>>> if(int(today()-date(/data/baby_delivery_date)) >= 3,"Follow up for >>>>>> 3rd day PNC visit.","Not yet due for 3rd day PNC visit.") >>>>>> >>>>>> >>>>>> On Thu, Jun 11, 2015 at 2:22 PM, Bibek Adhikari wrote: >>>>>> >>>>>>> Hi Sri: >>>>>>> >>>>>>> This is a full expression. Sometime it displays properly sometime >>>>>>> not. I have no clue. Any help is appreciated. >>>>>>> >>>>>>> On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote: >>>>>>>> >>>>>>>> HI Bibek, >>>>>>>> >>>>>>>> Don't see anything incorrect in the expression. Is that expression >>>>>>>> just an example or is it the full expression? Maybe the problem could lie >>>>>>>> in the extended expression. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari < bibeka...@gmail.com> wrote: >>>>>>>> >>>>>>>>> Anybody? >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote: >>>>>>>>>> >>>>>>>>>> Hi: >>>>>>>>>> >>>>>>>>>> We are using commcare to track pregnant women and remind pregnant >>>>>>>>>> women for their ANC and PNC visits. The app we created using commcare uses >>>>>>>>>> LMP to display messages to our community workers, who later call or visit >>>>>>>>>> pregnant women for follow up visits. Being said that, proper message is not >>>>>>>>>> being displayed to our community workers for follow up. >>>>>>>>>> >>>>>>>>>> This is an example: * if(today()-date(/data/baby_delivery_date)>=3,"Follow >>>>>>>>>> up for 3rd day PNC visit.","Not yet due for 3rd day PNC visit.")* >>>>>>>>>> >>>>>>>>>> I have a women who gave birth to a child on June 6,2015. However, >>>>>>>>>> I still see *"Not yet due for 3rd day PNC visit." *which is not >>>>>>>>>> correct. Any advice is highly appreciated. >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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. >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *Sri Ranganathan* >>>>>>>> >>>>>>>> Dimagi | Project Manager >>>>>>>> D - 1/28 Vasant Vihar | New Delhi 110057, India >>>>>>>> t: +91 11.46704670 | m: +91 9886752661 >>>>>>>> web: http://www.dimagi.com/ >>>>>>>> >>>>>>> -- >>>>>>> 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. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Sri Ranganathan* >>>>>> >>>>>> Dimagi | Project Manager >>>>>> D - 1/28 Vasant Vihar | New Delhi 110057, India >>>>>> t: +91 11.46704670 | m: +91 9886752661 >>>>>> web: http://www.dimagi.com/ >>>>>> >>>>> -- >>>>> 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 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 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. >> >

Bibek,

Can you provide some more information about how this isn’t working exactly?
What functions are you using?

I’d recommend looking at the Case List report on CommCareHQ to see what
value the case property you’re using for the feature flag has in these
cases to see if its different than what you’re expecting.

Thanks,
Will

··· On Thu, Jun 25, 2015 at 3:30 AM, Bibek Adhikari wrote:

Hi Clayton:

I tried that as well but no luck.

@ William:

I tried that as well but no luck either.

Any more suggestions or thoughts? Please.

On Friday, June 12, 2015 at 8:38:54 PM UTC+5:45, William Pride wrote:

Bibek,

If you’re displaying this in a case list then you might want to look into late
flags
https://confluence.dimagi.com/display/commcarepublic/Case+List+and+Case+Detail+Configuration?src=search#CaseListandCaseDetailConfiguration-DisplayProperties for
accomplishing this.

Also please note that within the case list you don’t use the same
’/data/baby_delivery_date’ pattern as you do within the form. Instead you
just refer to it as ‘baby_delivery_data’ (assuming that property has been
saved to the case).

Best,
Will

On Fri, Jun 12, 2015 at 7:00 AM Bibek Adhikari bibeka...@gmail.com wrote:

Hi Clayton and Aman:

I tried both ideas, however, both ideas DIDN’T work.

@Clayton - I am displaying that message in case list so that an user can
follow up and remind new mother about the third day test and so forth.

On Thursday, June 11, 2015 at 8:35:45 PM UTC+5:45, Clayton Sims wrote:

Bibek,

Can I ask: Are you displaying the date input and the message on the
same screen using a Question List?

I’ve heard reports that on some devices messages may or may not be
updated properly when the date widget changes.

Can you try:

  1. Setting the input date to a correct value
  2. Seeing the incorrect error message
  3. Navigating Back to the previous page
  4. Navigating Forward to the date value
  5. Reporting whether the message has been replaced by the correct
    message.

If this occurs, can you please report an issue through CommCareHQ so
our support team can follow up on the bug?

-Clayton

On Thu, Jun 11, 2015 at 8:07 AM, Aman Sen ama...@gmail.com wrote:

Hi bibek

Have you tried this:

  • if(date(today())-date(/data/baby_delivery_date)>=3,“Follow up for
    3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

once we had same problem it helped us.

thanks

regards

aman

On Thu, Jun 11, 2015 at 4:20 PM, Bibek Adhikari bibeka...@gmail.com wrote:

Hi Sri:

I will try and let you know. Thank you for your advice.

On Thursday, June 11, 2015 at 2:49:21 PM UTC+5:45, Sri Ranganathan wrote:

Hi Bibek,

It might work better if you cast your expression as an integer. So
rewrite the expression as:

if(int(today()-date(/data/baby_delivery_date)) >= 3,“Follow up for
3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)

On Thu, Jun 11, 2015 at 2:22 PM, Bibek Adhikari <bibeka...@gmail.com wrote:

Hi Sri:

This is a full expression. Sometime it displays properly sometime
not. I have no clue. Any help is appreciated.

On Thursday, June 11, 2015 at 2:34:07 PM UTC+5:45, Sri Ranganathan wrote:

HI Bibek,

Don’t see anything incorrect in the expression. Is that expression
just an example or is it the full expression? Maybe the problem could lie
in the extended expression.

On Thu, Jun 11, 2015 at 1:29 PM, Bibek Adhikari < bibeka...@gmail.com> wrote:

Anybody?

On Thursday, June 11, 2015 at 9:00:34 AM UTC+5:45, Bibek Adhikari wrote:

Hi:

We are using commcare to track pregnant women and remind
pregnant women for their ANC and PNC visits. The app we created using
commcare uses LMP to display messages to our community workers, who later
call or visit pregnant women for follow up visits. Being said that, proper
message is not being displayed to our community workers for follow up.

This is an example: * if(today()-date(/data/baby_delivery_date)>=3,“Follow
up for 3rd day PNC visit.”,“Not yet due for 3rd day PNC visit.”)*

I have a women who gave birth to a child on June 6,2015.
However, I still see *“Not yet due for 3rd day PNC visit.” *which
is not correct. Any advice is highly appreciated.


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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.


Sri Ranganathan

Dimagi | Project Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
t: +91 11.46704670 | m: +91 9886752661
web: http://www.dimagi.com/


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