How to calculate sum of transient attributes
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.
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.
0