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

How to access the CalcDialog?

edited December 2009 in General
Hello,

via the contextmenu of a ppVariable it's possible to open the CalcDialog
(hope that is meant by that term). Here the caption of the TreeView is set
to the name of the DataModule again, so I need to set it manually, like I
already do on the Calc tab and the Design tab.

I would like to know how I can access that dialog by code?
Also: when should I access it and set the caption? Is there an event which
fires once the dialog is called or so? Has it to happen everytime per
ppVariable?

Regards,
Mark

Comments

  • edited December 2009
    Hi Mark,

    The Calc dialog is a part of RAP which we do not provide the source to.
    Though you cannot alter the dialog itself, it does use the
    TppDataTreeBuilder to build the treeview that it uses. This is the same
    class that the Report Data Tree uses as well. It would be possible to alter
    the source of this class to meet the needs of your application for all tree
    views showing data in ReportBuilder. The TppDataTreeBuilder is located in
    the ppTreeVw.pas file.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2009
    Thank you, Nico.
    I took a look into it.

    To use it properly, it would be neccessary to include one of my units, to
    add the path to that unit to the search paths etc., since we are working
    with resourcestrings due the possibility to change the language. So that's
    not the best place to make the change, I fear.

    For now I could try to do it, but wouldn't it make sense to add a property
    to the designer (probably best choice) with the name like
    "CaptionPipelineTreeView" or something like that? If it's empty, the name of
    the DataModule can still be used as it is now, otherwise that would allow an
    easy way to configure that, since the name of the DataModule is really
    nothing the enduser should see in my opinion.

    Best regards,
    Mark

  • edited December 2009
    Hi Mark,

    Thanks for the suggestion, we will consider it.

    --
    Regards,

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

    Best Regards,

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