Project: Birt
Bug 237879 Data Set beforeOpen script execute twice when two table shares one data set.
Reported: 2008-06-20 01:35:32 | Status: resolved fixed

Please see attached report design, in which a script data set is designed and there are two tables share the data set. As can be observed from the report design that the beforeOpen Script of report design has been executed multiple times. This is however not expected. Throughout the report execution the beforeOpen() script of each data set should only be executed once.

Files changed in fix:
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedOdaDSQuery.java data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedScriptDSQuery.java data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/QueryExecutor.java