|
Re: Report generation process [message #707384 is a reply to message #707135] |
Mon, 01 August 2011 15:23 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03091 seconds