Home General

The fired event, when tabs for SubReports are being changed

edited July 2010 in General
Hello,

some time ago I was looking for several events, where I could adjust the
text of the DataTree so it doesn't show the name of the form /
DataModule where the pipeline resides, but shows my custom text instead.

Now I've discovered one more case, where I need to set the text:
when the report contains subreports and I switch between them via the
tabs at the bottom of the designer, the DataTree is being rebuilt again,
it seems, and shows the names of the DataModule again.

How can I access the event, which is fired there, so I can set my text?

Regards,
Mark

Comments

  • edited July 2010
    Hi Mark,

    You can use the TppDesigner.OnReportSelected to determine when a new report
    or subreport is selected into the designer window.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2010
    Oh, that was easy, thank you Nico!

    Though this works only if I'm on the design-tab. Once I switch to the
    calc-tab, this event isn't firing anymore, when I select the report tabs.

    What event is it here?


  • edited July 2010
    Nico? :)


  • edited July 2010
    Hi Mark,

    I'm very sorry, I somehow lost track of this post. For future reference if
    we do not respond to a post within 24 hours, please re-post to remind us.

    The customization capabilities of the code and data workspaces are not a
    broad as the design workspace. It is currently not possible to determine
    when the subreport tab is changed inside the code module using the
    OnReportSelected event. We will however add this to our list of possible
    enhancements for a later release of ReportBuilder.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2010
    Hi Nico,

    no problem, don't worry. There is always a lot of messages here and you and
    Nard are doing a really great work, so I think nobody is angry or so, if a
    message gets lost sometimes :)

    Thanks for replying and possibly considering it for one of the next
    releases.

    Regards,
    Mark

This discussion has been closed.