Explorer refreshing
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
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
This discussion has been closed.
Comments
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;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com