We are facing an issue in a tracker program, where we have a program rule which is supposed to assign a value to a data Element (value type integer) with an option Set (code 0 or 1 or 2 or 3) with the android Capture application.
On Capture Web App, everything is working as expected. When the program rule triggers, it assigns the value and the option associated for the data element is correctly displayed:
However, when using Android Capture app (Version 3.2.1.2 OR 3.3.0.1), the Assigned value for the option Set is not displayed (The data element is greyed, but we don’t see which value was assigned).
However, the value is correctly assigned in the backend (ie when we send the event to the server, and open it with Web capture app, we can see the value).
Additonaly, if we remove the value from the data element which triggered the program Rule, we can see that the option is displayed (and not greyed anymore).
In summary:
When we use a program rule assigning a value to a Data element (Value type = integer) with an option Set, the Adndroid Capture app asigns the value, but does not display the assigned value.
This works well when the data element is value type text.
Steps to reproduce:
Create a data element (value type = integer) with an option set (Code = 0 or 1 or 2).
Create a program rule in a tracker Program which assigns a value to this data element
Trigger the program rule on android
See that there is no value displayed but the data element is greyed (and the value is crrectly assigned if sending to the server)
Thank you for the detailed post. The android team is already aware of your post and will be looking into it. I think it might actually be similar to an issue posted by @Ulanbek some time ago so this might be a regression (Mobile app v.3.0.1 - errors)
It looks similar indeed, except that my program rule does not assign a value to a program Rule variable, but directly to a data Element.
It seems to only affect “Integer” value type Data Elements with Option Set, as we are also using Android App version 3.1.1.1 with text value type without issues.