Assigning value to a tracked entity attribute

Hello,

I am trying to assign a value from a data element within a program stage to a tracked entity attribute of the same program. They are both assigned the same option set. I would like to assign the option that is selected during tracker capture back to the tracked entity attribute. This is how I have configured the action:

image

The expression is being evaluated correctly as this is also tied to a second action (display text) which is working fine. Also when I check the console I can see it being evaluated correctly. Any help on this would be appreciated.

Thanks,

Nick

···

Shurajit Dutta
Health Information Consultant

Dear Nick,

It works for me when am I assign to a data element/attribute without options, could you have the attribute being assigned have now option set?

Otherwise it may require you to assign using the option set code.

Regards

image

···

On Thu, Jul 20, 2017 at 1:16 PM, Shurajit Dutta shurajitdutta@gmail.com wrote:

Hello,

I am trying to assign a value from a data element within a program stage to a tracked entity attribute of the same program. They are both assigned the same option set. I would like to assign the option that is selected during tracker capture back to the tracked entity attribute. This is how I have configured the action:

The expression is being evaluated correctly as this is also tied to a second action (display text) which is working fine. Also when I check the console I can see it being evaluated correctly. Any help on this would be appreciated.

Thanks,

Nick

Shurajit Dutta
Health Information Consultant


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

Prosper Behumbiize, MPH
DHIS2 Implementation| HISP Uganda

prosper@hispuganda.org | prosper@dhis2.org | Skype: prospertb