eric.dizon
17th September 2014, 17:45
In a multi-occurrence form I understand there are two ways to calculate the total of field.
One is sum up the database values upfront using a select statement this is ok but this not dynamic if the user does an inline filter.
The other one is to iterate the occurrences in screen. I would prefer this because it can adopt when a user does a filter and updates the session to the proper values.
But what I need as well is for it to show the total of the session even the records or showing or not on the page without using select statement. Is this possible to iterate on all the records of a session showing or not to come up with the proper values but be dynamic enough so when the user does a filter it will total the results also even they don't fit on the screen's current page?
for i = 1 to filled.occ
do.occ.without.update(i,get.grid.totals)
endfor
One is sum up the database values upfront using a select statement this is ok but this not dynamic if the user does an inline filter.
The other one is to iterate the occurrences in screen. I would prefer this because it can adopt when a user does a filter and updates the session to the proper values.
But what I need as well is for it to show the total of the session even the records or showing or not on the page without using select statement. Is this possible to iterate on all the records of a session showing or not to come up with the proper values but be dynamic enough so when the user does a filter it will total the results also even they don't fit on the screen's current page?
for i = 1 to filled.occ
do.occ.without.update(i,get.grid.totals)
endfor