This content has been marked as final. Show 4 replies
for example if att is the attribute that you want to calculate and it depend on val attribute1 person found this helpful
the groovy exp is done on att
if(val=='Standard') return a * 0.3
else if(val=='Premium') return c * 0.3
else if(val=='Luxury') return d * 0.3
you must add attribute val, a, c ,d to the dependent attribute
hope it helps
Thanks for the idea! I forgot to mention that there are bind variables in the VO and that the calculation must be done according
to the values of the binds. So, Standard, Premium and Luxury are the bind variables.
it would be like adf.object.viewObject.Standard or try adf.object.viewObject.getStandard()
Thanks for your help! I will try it.