Warning messages of Program rules are not working on android app

I am using Program rules in the event program and the rules are working fine with the web version, when it comes to the Android app, a few program rules do not work as expected. Like:

  • Warning messages are not displayed on the Android app.
  • Pushing value to data element is not working.
    I am using version 2.36.13.2 on DHIS and Android app version 3.0.0.2
    Any quick help is much appreciated.

Hi @Neeraj_Gupta
Welcome back to the community!

Do you see any error? Is it possible to share the program rule of the warning message? Does it work on the web Capture app?

Thanks!

Hello Gassim,

Apologies for the delayed response.
I am not seeing any error message, the warning messages are displayed on the web version perfectly, these are not working for Android app, below are the details:

  • Program rule: Show warning message if G6PD and Hb is low

  • Program rule expression: (#{G6PD} < 6.1 || #{Hb} < 70) && #{G6PD} != “” && #{Hb} != “”

  • Program rule action:
    -Action - Show Warning
    -Data Element to display warning next to - ‘DE name’
    -Static Text: ‘Do NOT give Primaquine contact Doctor for advise.’

image

Please let me know in case you need further information.

Hi @Neeraj_Gupta

I suggest to use the function d2:hasValue instead of != “”. That should solve the problem but let us know if the issue persists.

Thank you for your report.

2 Likes

Dear @nancyesp

Thank you for the suggestion, I will test it and will inform you.

Thanks,
Neeraj

1 Like

Dear @nancyesp

I have changed the program rules as suggested and these are working well on Android, thank you for all your support.

Thanks,
Neeraj

2 Likes