Why does GetText for a TppDBText fire 3 times? I want to use the prior value for each time it prints but because it fires 3 times that is getting messed up.
The GetText event fires numerous times to ensure the correct pagination of the report. You will need to use a TppVariable rather than a TppDBText and pull the value directly off the database inside the TppVariable.OnCalc event. You can then use the OnCalc event for any other functionality as it essentially fires only once.
You could possibly place a flag inside the event and once the event is fired, keep track of the repeated value and place the "continued" text where you need it. Then, once the detail value changes, reset the flag and move on to the next value, starting over again.
Comments
The GetText event fires numerous times to ensure the correct pagination of
the report. You will need to use a TppVariable rather than a TppDBText and
pull the value directly off the database inside the TppVariable.OnCalc
event. You can then use the OnCalc event for any other functionality as it
essentially fires only once.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
something to the front of it, such as
My Event Name
(continued) My Event Name
(continued) My Event Name
How could I best achieve this?
You could possibly place a flag inside the event and once the event is
fired, keep track of the repeated value and place the "continued" text where
you need it. Then, once the detail value changes, reset the flag and move
on to the next value, starting over again.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com