[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: Chart Report - Parameter validation

Luis,

Keep in mind the order of the dataset execution may change if you have report items that use other report items as there binding.

Look here:
http://www.eclipse.org/birt/phoenix/deploy/reportScripting.php
and some of these examples use script:
http://wiki.eclipse.org/Report_Developer_Examples_%28BIRT%29

Jason


Luís Ventura wrote:
Hello Jason,
Thank you very much, for your help. This is a mutch better solution...
Now i understand that, each dataset is filed according to the runtime statements on the report. I've put the table row that retrieves the sqlquery form the 1st dataset, before the chart, and so, the global js variable is filled before the creation of the chart and corresponding dataset. At first it wasn't working, because I was putting the row of the sql query after the chart.


Thank you very mutch again... if you don't mind I would like to ask, if there is any place in eclipse.birt where I can see examples or tutorials of script statements, like the one that you provide me now (getGlobalVariable(String)).

------------------------------------------------------------------------------

Luis,

Instead of using a cascaded parameter (which I assume you are using to gurantee your first data set is called before the charts) why not make one simple parameter for the key, and add a hidden table above the chart that uses the first dataset and in the column you want create an event on the oncreate to capture it in a global js variable and use it in your second dataset before your chart is created.

Jason