Using the My Oracle Support Portal (MOSC)

MOSC Banner

How to calculate sum of transient attributes

edited Feb 8, 2011 7:47AM in Using the My Oracle Support Portal (MOSC) 1 comment
I am working with JDeveloper 11.1.1.4 and adf fusion web application. I have 2 view objects, master and detail. in detail view i have one "Amount" field, i created a transient attribute "Checked" for user actions, and another transient attribute called "CheckedAmount" that is actually expression (Checked ? Amount : 0), and it works fine, when  i check the first transient attribute, the CheckedAmount gets updated.

In master view i have few more calculated attributes, the first one "SumAmount" that is actually groovy expression detail.sum("Amount"). If I change the "Amount" "SumAmount" gets updated only after commit, but the real problem is attribute called "SumCheckedAmount" that should calculate detail.sum("CheckedAmount"). The idea was to have a that variable update its value based on users selection.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center