Program rule Assign

Hello,

I would like to tick Yes / No auautomatically after confirming that 4 previous data elements have values that respect a certain range.

My condition is respected and the program rule works but I have a small concern for the level of value to put in the expression so that “Yes” is checked in GUI. I put 1 in the expression to assign, the display does not check “Yes” but it shows me “No” with a funny format (see picture )

image

Cheers,

···


Riddy NDOMA

Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
Twitter: riddyndoma, LinkedIn: riddy ndoma

Blog: http://riddyndoma.blogspot.com/
Vous servir est mon désire (Serving you is my desire)

Hey Riddy - program rules use the values true and false for yes/no data elements. Try assigning true instead of 1.

The display format indicates that the field is read only. Any assigned field is shown as a read only field by the data entry widget.

Markus

···
  1. jul. 2018 kl. 05:21 skrev riddy ndoma riddyndoma@gmail.com:

Hello,

I would like to tick Yes / No auautomatically after confirming that 4 previous data elements have values that respect a certain range.

My condition is respected and the program rule works but I have a small concern for the level of value to put in the expression so that “Yes” is checked in GUI. I put 1 in the expression to assign, the display does not check “Yes” but it shows me “No” with a funny format (see picture )

<pr.png>

Cheers,


Riddy NDOMA

Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
Twitter: riddyndoma, LinkedIn: riddy ndoma

Blog: http://riddyndoma.blogspot.com/
Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Hi, Marius I had done this test before I made this email, the display was not always good so much that I did not know the value that will actually be stored. The image shows the difference of (1) and (2)

image

···

2018-07-23 9:21 GMT+02:00 Markus Bekken markus@dhis2.org:

Hey Riddy - program rules use the values true and false for yes/no data elements. Try assigning true instead of 1.

The display format indicates that the field is read only. Any assigned field is shown as a read only field by the data entry widget.

Markus

  1. jul. 2018 kl. 05:21 skrev riddy ndoma riddyndoma@gmail.com:

Hello,

I would like to tick Yes / No auautomatically after confirming that 4 previous data elements have values that respect a certain range.

My condition is respected and the program rule works but I have a small concern for the level of value to put in the expression so that “Yes” is checked in GUI. I put 1 in the expression to assign, the display does not check “Yes” but it shows me “No” with a funny format (see picture )

<pr.png>

Cheers,


Riddy NDOMA

Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
Twitter: riddyndoma, LinkedIn: riddy ndoma

Blog: http://riddyndoma.blogspot.com/
Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Riddy NDOMA

Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
Twitter: riddyndoma, LinkedIn: riddy ndoma

Blog: http://riddyndoma.blogspot.com/
Vous servir est mon désire (Serving you is my desire)

Hey Riddy - If I follow you correctly, the (1) in your image is assigned by a program rule, and works as expected: “(checkmark)Yes” is the way we display a Yes/No data element where"Yes" is selected and the mode is read only.

Markus

···

2018-07-23 9:21 GMT+02:00 Markus Bekken markus@dhis2.org:

Hey Riddy - program rules use the values true and false for yes/no data elements. Try assigning true instead of 1.

The display format indicates that the field is read only. Any assigned field is shown as a read only field by the data entry widget.

Markus

  1. jul. 2018 kl. 05:21 skrev riddy ndoma riddyndoma@gmail.com:

Hello,

I would like to tick Yes / No auautomatically after confirming that 4 previous data elements have values that respect a certain range.

My condition is respected and the program rule works but I have a small concern for the level of value to put in the expression so that “Yes” is checked in GUI. I put 1 in the expression to assign, the display does not check “Yes” but it shows me “No” with a funny format (see picture )

<pr.png>

Cheers,


Riddy NDOMA

Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
Twitter: riddyndoma, LinkedIn: riddy ndoma

Blog: http://riddyndoma.blogspot.com/
Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Riddy NDOMA

Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
Twitter: riddyndoma, LinkedIn: riddy ndoma

Blog: http://riddyndoma.blogspot.com/
Vous servir est mon désire (Serving you is my desire)