Page 1 of 1

Problems when previewing data

Posted: Mon Jul 25, 2011 4:03 pm
by MtheP
Hi,

I am populating the business objects asynchronously. However I am having a few problems.

A) StiOptions.Engine.GlobalEvents.PreviewingReportInDesigner event does not seem to fire. Therefore I am having to use StiOptions.Engine.GlobalEvents.ReportRendering
public sealed class TimeNavigationReport : StiReport
{
public TimeNavigationReport()
{
StiOptions.Engine.GlobalEvents.PreviewingReportInDesigner += GlobalEventsReportPreviewing
}
}
B) Having used flags and the report rending event my next problem is refreshing the window once the data has been retrieved. this.InvokeRefreshViewer(), this.Render() or combination do not seem to refresh the preview window. However if I go back into designer (clicking the button) and then click on preview again the data is displayed. So it would seem I need a method to refresh the preview window in the designer when the data has been retireved.

Problems when previewing data

Posted: Tue Jul 26, 2011 2:55 am
by Alex K.
Hello,
MtheP wrote:A) StiOptions.Engine.GlobalEvents.PreviewingReportInDesigner event does not seem to fire. Therefore I am having to use StiOptions.Engine.GlobalEvents.ReportRendering
We have connected the processing of the event StiOptions.Engine.GlobalEvents.PreviewingReportInDesigner in the Silverlight designer. It will be available in the prerelease build this week.
MtheP wrote:B) Having used flags and the report rending event my next problem is refreshing the window once the data has been retrieved. this.InvokeRefreshViewer(), this.Render() or combination do not seem to refresh the preview window. However if I go back into designer (clicking the button) and then click on preview again the data is displayed. So it would seem I need a method to refresh the preview window in the designer when the data has been retireved.
We added the processing of the event InvokeRefreshViewer() in the viewer.
It will be available in the prerelease build this week.

Thank you.

Problems when previewing data

Posted: Tue Jul 26, 2011 3:10 am
by MtheP
To all developers:-

This is what I call customer service

:biggrin:

Problems when previewing data

Posted: Tue Jul 26, 2011 5:28 am
by Andrew
Thank you! :blush: