Assign a value from a different event in Capture App

I am trying to add a program rule in Capture App, which assigns a value to a data element, and this value is coming from a data element from a previous event. The data elements are not the same, but the value is the same. I have tried both the “Data element from the newest event in the current program” and the “Data element from previous event” variable rules but no data is being assigned.

Please assist

1 Like

Hi @Tangy

Would you please share the program rule expression and its description? What’s the condition? It’d be helpful for me to be able to test in play.dhis2.org. Additionally, what’s the expression in the action itself.

Thanks!

Hi @Gassim
Program rule variable

Expression

Action

1 Like