Community
Participate
Working Groups
Build Identifier: 20110615-0604 The report event afterFactory is not fired at all. Reproducible: Always Steps to Reproduce: 1. Create a new report 2. Create a report variable afterFactoryFired with default value false 3. Put the following code in afterFactory of the report: afterFactoryFired = true; 4. Insert a Dynamic Text item into the report with the following text: vars["afterFactoryFired"] 5. Run the report Report will show "false". Should show "true".
BIRT version 3.7.0 on Eclipse Indigo
afterFactory is invoked after the whole report is finished, It's supposed to be used to release resources. To verify the invocation, please create a disk file in the callback. Like: file = new Packages.java.io.FileOutputStream("d:/testFile"); file.write(1); file.write(2); file.close();
Thank you, that worked. So the problem is using report variables in afterFactory event? This is not at all clear from the documentation http://eclipse.org/birt/phoenix/deploy/reportScripting.php
You can use report variables in afterFactory, but it just can't be reflected in report execution.