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

Changing Group variable

edited April 2004 in General
Is there a way of changing the Group Variable at run time? I may initially
set the variable linked to one datafield and at runtime, may want to change
the Group variable to link to a different datafield. Also, is there a way
of moving a Group up or down at runtime?

Comments

  • edited April 2004
    Hi Rob,

    Although it is probably not a good idea to change the group breaking
    variable while the report is generating, you can try changing the
    TppGroup.BreakName and TppGroup.BreakType to do so. This may however end up
    confusing the engine during generation and not give you the output you
    expect. I would suggest making these changes before calling Report.Print.

    The groups are kept in the TppReport.Groups list to keep their order. You
    can move/delete/add groups to this list using the TppReport.AddGroup,
    TppReport.MoveGroup, TppReport.RemoveGroup methods.

    --
    Best Regards,

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