Parameters in Scripted Data Source [message #110622] |
Tue, 17 January 2006 18:24  |
Eclipse User |
|
|
|
I have to create a subreport with a scripted data set. I tried hard and by
no means i got the master/detail functionality. I tried using parameters,
but they canŽt be modified at runtime according the API Specification. Is
there any way to bind an atributte/parameter or whatever in my subreport
to the master report?
Thanks in advance...
Edmilson
|
|
|
|
|
|
|
|
|
Re: Parameters in Scripted Data Source [message #116810 is a reply to message #115333] |
Wed, 25 January 2006 15:55  |
Eclipse User |
|
|
|
The "rows" property, which is used by an inner table to refer data set row
in an outer table, works without regard to the types of the data sets and
their data sources. So you should be able to refer to a xml data set row in
an inner scripted data set.
--
Gary Xue
Actuate Corporation - Product Development
BIRT Committer
"Wolfgang" <droelf@australia.edu> wrote in message
news:dr7ik2$his$1@utils.eclipse.org...
> Is this passing of data possible between different data sources as well?
Or
> is it restricted to data sets referring to the same data source?
> In the example "Creating a subreport" only one data source is used. I'm
> trying to pass data between an outer XML data source and an inner scripted
> data source retrieving data depending on the values of the XML document.
>
> Thanks,
>
> Wolfgang
>
> "Gary Xue" <gxue@actuate.com> schrieb im Newsbeitrag
> news:dqrfm2$fnv$1@utils.eclipse.org...
> > Scripted Data Set does not support parameters in the 2.0 release. We are
> > considering this feature for a future release.
> >
> > This limitation can usually be worked around easily however. In your
inner
> > data set, you can directly refer to the outer data set's current column
> > values by using the "rows" property. For example, expression {
> > rows[0]["Customer"] } will get you the value of the column "Customer" in
> the
> > current row of the outer data set.
> >
> > Also, do not use the "params" array to pass data between data sets.
Since
> > you are working with a Javascript environment, any data passing between
> data
> > sets can be done using global Javascript variables.
> >
> > --
> > Gary Xue
> > Actuate Corporation - Product Development
> > BIRT Committer
> >
> > "Edmilson" <edmilson.faria@gmail.com> wrote in message
> > news:00bb44276b1286a62b9ff2e49b5b2330$1@www.eclipse.org...
> > > Gary, have you seen the code i sent to you? I can
|
|
|
Powered by
FUDForum. Page generated in 0.05952 seconds