← Back to team overview

dhis2-users team mailing list archive

Re: Program rule Assign

 

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

> 23. jul. 2018 kl. 10:48 skrev riddy ndoma <riddyndoma@xxxxxxxxx <mailto:riddyndoma@xxxxxxxxx>>:
> 
> 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) 
> <pr_tes.png>
> ​
> 
> 2018-07-23 9:21 GMT+02:00 Markus Bekken <markus@xxxxxxxxx <mailto:markus@xxxxxxxxx>>:
> 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
> 
> 23. jul. 2018 kl. 05:21 skrev riddy ndoma <riddyndoma@xxxxxxxxx <mailto:riddyndoma@xxxxxxxxx>>:
> 
>> 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/ <http://riddyndoma.blogspot.com/>
>> Vous servir est mon désire (Serving you is my desire)
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
>> Unsubscribe : https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
> 
> 
> 
> -- 
> Riddy NDOMA 
> Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
> Twitter: riddyndoma, LinkedIn: riddy ndoma
> Blog: http://riddyndoma.blogspot.com/ <http://riddyndoma.blogspot.com/>
> Vous servir est mon désire (Serving you is my desire)


References