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

How to find selected item in explorer (2)

edited October 2001 in General
In response to your answer from yesterday, I had a hunt around in the code
for the TppReportExplorer and TppReportExplorerForm classes.

The Report Explorer makes use of a TListView to list the reports. However of
oll the controls this is the one that is created dynamically in code and is
represented by the private FListView: TppItemList (TListView decendant)
variable. Therefore I can not get to it.

I had a look at the CurrentItemName and CurrentFolderID properties from the
TppReportExplorer but these only seem to be updated for things you do to
folders and items such as renaming. Item Selecten does not update these
properties.

So... that leaves me with nothing?

Having the ability to Merge a menu into the Report Explorer is a great thing
but typically you'd want to perform some actions on the items listed in the
ReportExplorer and therefore you'd want access to the selected items in the
listview.

I could publish the FListview in a wrapper but the form is created in the
explorer classes and it does get a bit messy.

Would you consider a code change to propagate some kind of selection set
from the TListview all the way up to the TppReportExplorer class?

By the way... Very nice and clean code!

Thanks

Regards

Paul van Dinther

Comments

  • edited October 2001

    Thanks for the feedback.

    I think the simplest way to handle your requirements for now would be to
    create your custom report explorer form - that gives you complete
    control. You can basically take the existing report explorer form and
    save as new class. Customize it and register it with RB (see
    Initialization section at the bottom of the unit).

    See RBuilder\Tutorials\Complete\Applications\EndUser with Custom
    Explorer.




    Best regards,

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