Previous Row Calculations
RB 7.04 Server / Delphi 6 SP2
I'm stumped trying to calculate a MPG in a RB Report. In Delphi I used a
secondary data set to pull values out of the previous row to do the
calculation. is this possible in RBServer using RAP? Can I store the values
in "hidden" variables somehow and reference them in a formula?
Any help will be greatly appreciated!
MPG = (current row mileage -
previous row mileage) /
Current row Amount of Fuel
I'm stumped trying to calculate a MPG in a RB Report. In Delphi I used a
secondary data set to pull values out of the previous row to do the
calculation. is this possible in RBServer using RAP? Can I store the values
in "hidden" variables somehow and reference them in a formula?
Any help will be greatly appreciated!
MPG = (current row mileage -
previous row mileage) /
Current row Amount of Fuel
This discussion has been closed.
Comments
You could also try creating some global variables in RAP which would remove
the need to add another component to your report. These global variables
could hold your previous row data until it is needed to calculate the mpg.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com