I am getting this error while i used refresh variable to refresh the value based in the variable change. Expression evaluation error [evaluation ID = c66ea:0543a] in rule 'mtc_griditemtotal' (called by rule 'mtc_formworkorderapproval') at function a!refreshVariable [line 31]: a!refreshVariable may only be used to define a local variable within the a!localVariables function.
Discussion posts and replies are publicly visible
I think the issue is, that you wrapped a!refreshVariable() into if(). Why not move the if() to the value parameter?
So we can not put refreshVariable into if right ? but i have an requirement to wrap it otherwise it is affecting the flow.
I do not really understand the intention here, but you can make the value parameter AND the refreshOnVarChange parameter conditional. And that should give you the exact same logic.
Yeah , got it Thanks Stefan Helzle for your help