Hi there Gorgi!

You mention a "Yes only" data element, but did you mean a "Yes only" tracked 
entity attribute? Meaning, is the checkbox and the dropdown both located inside 
same registration/profile form?

If they are, you can make a rule in the way you describe below. The correct 
expression would be:
A{recLawStage} == true
(Assuming you make a program rule variable called recLawStage for the "Yes 
only" question)

Best regards, 
Markus

> 25. aug. 2017 kl. 14.03 skrev Georgi Chakarov <geo...@logicaloutcomes.net>:
> 
> Hello,
>  
> Using program rules, can I assign value to a tracked entity attribute with an 
> option set?
> In other words, I want the answer option selected for my tracked entity 
> attribute to be dependent on a data element in the current stage.
>  
> I have a YES_Only data element called “Recommendation progressed at law 
> stage?”. If this data element is ticked off I want my tracked entity 
> attribute to be assigned with ‘Law’ answer option.
> This is the rule I have built, that does not seem to be working.
>  
> 1)      Expression - “Recommendation progressed at law stage?” == 1
>  
>  
> <image001.jpg>
>  
>  
> 2)      Assign value – Stage == ‘Law’
>  
>   
> <image002.jpg>
>  
>  
> Can anyone tell me what is the correct expression to compose, (if values can 
> be assigned to data elements with option sets at all)?
>  
> Thanks a lot,
>  
> Georgi
>  
> 
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
> <mailto:geo...@logicaloutcomes.net> | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> <mailto:i...@logicaloutcomes.net>
>  
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to     : dhis2-us...@lists.launchpad.net 
> <mailto:dhis2-us...@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <https://help.launchpad.net/ListHelp>
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to