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

Disable groups

edited September 2008 in RAP
How do I disable a especific group? I put the property visible for false,
but it didn't disable the group, just don't show. I need disable a group in
run-time that was created in design.

Juliano Rafael Silva Barros

Comments

  • edited September 2008

    The Group.OnGetBreakValue event can be used to control when the group
    breaks. If you want the group to never break, then return a constant value.

    Another option might be to call Group.Free. However you need to do this
    prior to report generation. You could perhaps use the
    Report.OnInitializeParameters or BeforeOpenDataPipelines event.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2008
    Calling Group.Free on teh BeforeOpenDataPipelines even cause an Access
    Violation but it seems to work fine if called from the
    Report.OnInitializeParameters event.

    What is the best and recommended approach to removing a Group?

    Thanks,
    Scott

  • edited October 2008
    If calling Group.Free works from Report.OnInitializeParameters, then I would
    use that. It's a timing issue.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.