Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

GetText

edited September 2003 in General
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.

Comments

  • edited September 2003
    Hi Chris,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2003
    How would I best achive this. If a value is repeated. I want to add
    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?

  • edited September 2003
    Hi Chris,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.