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

Explorer refreshing

edited March 2004 in End User
Hi,

In the OnBeforePost event of tblItem I check to see whether a report can be
deleted or not. The FolderId is set to -2, so if I decide a report cannot
be deleted I change the folderId in the OnBeforePost back to what it was
before the attempted deletion. However, the explorer no longer shows the
report until I click to another folder and back again. What command can I
use to refresh the explorer view in the OnAfterPost method?

ReportBuilder 6.03

Thanks

Alex

Comments

  • edited March 2004
    Hi Alex,

    Try typecasting the ReportExplorer.Form as TppReportExplorerForm and call
    the Refresh method. The Refresh method should update the treeview and
    listview in the report explorer. Something like the following...

    TppReportExplorerForm(ReportExplorerForm).Refresh;

    --
    Best Regards,

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