Hi
I have a read only view object named "ConnectionVVO". And it has database field name "points"(type is number).
Now I need to take the sum of points.
For this I did the following.
Self view object added to the same view object as a view accessor named "ConnectionVVO1".
Created a transient attribute named "TotalPoints".
Added following groovy as the value expression of the above transient attribute.
adf.object.ConnectionVVO1.getRowSet().sum("points")
after that when I run the application module and run the view object it was extremely slow. Actually nothing was appeared. There after I modified the sql statement and added a where clouse to select few rows.
Then it was appeared without slowness.
The table has around 11 million records.
Could you please provide a hint or any alternate way for doing this(getting the sum of points).
Please help.
Edited by: deshan on Mar 9, 2011 2:56 PM