Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Report generation process
Report generation process [message #707135] Mon, 01 August 2011 09:34 Go to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Hey Jason,

How can I stop/quit the report generation process within BIRT? Preferably using scripts.

My requirement is to check for a condition in the initialize script and then not allow the report to be displayed to the user if condition evaluates to true.I reckon a way to do it is to stop the report generation and show a message to the user.

Thanks for your help in advance.

Best Regards
Gaurav
Re: Report generation process [message #707384 is a reply to message #707135] Mon, 01 August 2011 15:23 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Why not put the message in the report in a label and name it something
like mycancellabel. Then name the other items in the report. Then use
a beforeFactory script like:

if( yourchecktocancel == true ){
reportContext.getDesignHandle().findElement("mytable").drop();
reportContext.getDesignHandle().findElement("mychart").drop();
}else{
reportContext.getDesignHandle().findElement("mycancellabel").drop();
}

Jason

On 8/1/2011 5:34 AM, Gaurav wrote:
> Hey Jason,
>
> How can I stop/quit the report generation process within BIRT?
> Preferably using scripts.
>
> My requirement is to check for a condition in the initialize script and
> then not allow the report to be displayed to the user if condition
> evaluates to true.I reckon a way to do it is to stop the report
> generation and show a message to the user.
>
> Thanks for your help in advance.
>
> Best Regards
> Gaurav
Re: Report generation process [message #708761 is a reply to message #707384] Wed, 03 August 2011 06:34 Go to previous message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Thanks a million for that Jason. It worked like a charm.

Best Regards
Gaurav
Previous Topic:Empty Table
Next Topic:Integrating the Report Engine to RCP plugin
Goto Forum:
  


Current Time: Thu Apr 18 00:27:45 GMT 2024

Powered by FUDForum. Page generated in 0.03876 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top