This discussion is archived
4 Replies Latest reply: Feb 3, 2013 2:02 AM by user545194 RSS

ADF Groovy Expression for calculation

user545194 Newbie
Currently Being Moderated
Hi,

I am using JDeveloper 11gR2. For a transcient attribute in a VO, I must add an expression that will calculate and return a value according to a business rule.
I.e. if 'Standard' then column a * 0.3 or column b * 0.3 
           elsif 'Premium' then column c * 0.3 
           else 'Luxury' then column d * 0.3 
Of course, using the appropriate Groovy expression. Does anyone have an example I could try?

Thanks!

Edited by: user545194 on 02.02.2013 07:28

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points