Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calculating sum of column using Groovy Sum Function

873210Jan 30 2012 — edited Jan 30 2012
Dear All,

We are using jdeveloper 11.1.1.2.0

I have to find the sum of a column salary in a vo.
For this i created a transient attribute in the vo, and set its value to VesselVO2.sum("salary").
And I am getting the sum of all the rows in the table successfully.

My issue is ,I have a view criteria in the vo. When I apply the view criteria I want the sum of the result rowset, but instead I am still getting the sum of all the rows in the table.
What could be the issue?
I have set the updatable property of the attribute to always.
The vo is a read only vo.

Please advice,
Susan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2012
Added on Jan 30 2012
10 comments
3,561 views