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

Which item is selected in the Explorer

edited October 2001 in General
I am using MergeMenu in TppReportExplorer. This menu item when selected will
display a accesrights maintenance screen. It is my intention to allow the
user to set the access rights to the currently selected report intem in the
explorer.

TppReportExplorer.CurrentItemName does not return the selected item. Also I
tried this via:

ppReportExplorer1.ItemPipeline.GetFieldForName('ItemID').Value

Also no success.

How can I get access to the report item selected?

Thanks

PS Your prior help was appreciated and helpfull.

Regards

Paul van Dinther

Comments

  • edited October 2001
    The item pipeline isn't updated so that it always points to the current
    recrod in the database for the report that is currently selected in the
    report explorer (the report explorer would run slower if it did that). The
    report is only loaded when the item is double clicked on, it is subsequently
    loaded into the template object inside the report component which is
    connected to the report designer. You'll have to edit the record which is
    represented by the currently selected item in the report explorer. You can
    see how we load a report in the report explorer in the
    ..\RBuilder\Source\ppRptExp.pas in the TppReportExplorer.LoadReport method.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.