Page 1 of 1
How to Find Tab click Event
Posted: Thu Aug 09, 2012 2:54 pm
by waisblut
Hello,
I'm trying capture an Click-Event for whenever you click in one of the Tabs (Specifically the "Preview Report" Tab Control). So I could put some code whenever the user click on this Tab.
I've already used "StiOptions.Engine.GlobalEvents.PreviewingReportInDesigner" event but it doesn't really fit for me because whenever "Auto-Refresh" CheckBox is off, this event won't get triggered.
Thanks,
waisblut.
Re: How to Find Tab click Event
Posted: Fri Aug 10, 2012 7:23 am
by HighAley
Hello.
What are you to do with tab click event?
Please, explain your problem more detailed.
Thank you.
Re: How to Find Tab click Event
Posted: Fri Aug 10, 2012 12:51 pm
by waisblut
Hello,
First of all, Thanks for your quick reply!
As soon as the user clicks this Tab, before anything else, it would open a new Form Window wich the user would have some filtering options. Withing this "Filtering Window", if the users clicks on the Close Form Button (X), the Preview should not refresh (Perhaps the "Close Form Button (X)" would avoid trigger "ReportCompiling" Event).
Thanks again!
Re: How to Find Tab click Event
Posted: Fri Aug 10, 2012 2:05 pm
by HighAley
Hello.
Please, try to use our Form. Look at the Dialogs section of our Demo.
Thank you.
Re: How to Find Tab click Event
Posted: Fri Aug 10, 2012 5:51 pm
by waisblut
Hi Again!
I did use the Demo. Sorry, but that was not what I meant before.
What I meant was that I'm trying to capture an event that is responsible for triggering the "Click" on the "Preview" Tab customizing the component (StiReport). So I could put some code in it. Something similar of using "StiOptions.Engine.GlobalEvents.PreviewingReportInDesigner".
Maybe the attachment enclosed would be a better explanation.
Thanks.
Re: How to Find Tab click Event
Posted: Mon Aug 13, 2012 1:48 pm
by HighAley
Hello.
There is no such event and we'll not implement it.
Why do you need this event and not our Dialogs?
Also you could call you method from BeginRender event of the report.
Thank you.
Re: How to Find Tab click Event
Posted: Wed Aug 15, 2012 12:01 pm
by waisblut
Hello again!
I need the event that I'm asking for to open my Dialog.
I am being able right now to open Dialogs, but Whenever the User clicks on Close button of the Dialog, I don't want the report to be rendered again.
Using events such as "StiOptions.Engine.GlobalEvents.PreviewingReportInDesigner" opens my dialog fine, but it ALWAYS renders the preview Again. I would like to be able to PREVENT the rendering of the PREVIEW. (Abort the Report Compiling).
Thanks again!
Re: How to Find Tab click Event
Posted: Wed Aug 15, 2012 1:55 pm
by HighAley
Hello.
waisblut wrote:I need the event that I'm asking for to open my Dialog.
I am being able right now to open Dialogs, but Whenever the User clicks on Close button of the Dialog, I don't want the report to be rendered again.
Using events such as "StiOptions.Engine.GlobalEvents.PreviewingReportInDesigner" opens my dialog fine, but it ALWAYS renders the preview Again. I would like to be able to PREVENT the rendering of the PREVIEW. (Abort the Report Compiling).
You could use next code in the BeginRender event:
Thank you.
Re: How to Find Tab click Event
Posted: Wed Aug 15, 2012 7:07 pm
by waisblut
Ok,
We are almost there.
After using the "IsStopped" Property, when the user clicks on Close Button on my Dialog, it Returns a Blank screen. But what I expect to show the User would be the previous Compiled Report.
Another much clearer example, would be:
When the user clicks on the REFRESH Button......My Dialog opens.......then, if the user Clicks on Cancel Button, No Refresh-Action should happen.....
Thanks!
Re: How to Find Tab click Event
Posted: Thu Aug 16, 2012 6:50 am
by HighAley
Hello.
Unfortunately, we couldn't provide your such behaviour of our Designer. And it's impossible to implement such feature.
Thank you.