Hi!
I've some questions about global variables and passing them from report design to dataset for example.
I've read that we can't pass javascript variables between processes. If I understand well what this mean, I can't use a variable initialized in the eventHandler reportDesign.initialize() in another eventHandler like dataset.open().
Usally, you must use the reportContext object to pass global variables, using the methods set/getGlobalVariable() or set/getPersistentGlobalVariable() (in the case of datasets).
Or first of all, an error occurs when I use the method setPersistentGlobalVariable() in the eventHandler reportDesign.initialize().
Is it normal?
And I made some tests, and it seems like I can pass variables between processes without using the reportContext object, like this :
In the reportDesign :
initialize() {
myVariable = 10;
}
In the dataset :
open() {
var test = myVariable //test is set to 10
}
Could you explain me how Birt manages global variables?
I've design some report passing global parameters form datasources (or report) to dataset without using any objet or method and it's working well.
Am I missing something?
Thank's for help