Skip to main content



      Home
Home » Archived » BIRT » Parameters in Scripted Data Source
Parameters in Scripted Data Source [message #110622] Tue, 17 January 2006 18:24 Go to next message
Eclipse UserFriend
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 #110689 is a reply to message #110622] Tue, 17 January 2006 20:31 Go to previous messageGo to next message
Eclipse UserFriend
Edmilson,
You can bind the parameters of the subreport data set to an expression that
refers to the outer report's data. Can you post a sample report design (even
if it doesn't work) so I can understand what exactly you are trying to do?

--
Gary Xue
Actuate Corporation - Product Development
BIRT Committer

"Edmilson" <edmilson.faria@gmail.com> wrote in message
news:9b4608309a5f7c7a65251d4fc31b2fa7$1@www.eclipse.org...
> 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
Re: Parameters in Scripted Data Source [message #110805 is a reply to message #110689] Wed, 18 January 2006 07:06 Go to previous messageGo to next message
Eclipse UserFriend
ok, but i canŽt create parameters in the scripted data set, there isnŽt
this option in the scripted data set Editor. Can you help me on how to
refer to the outer reportŽs data in the subreport. I tried refer to the
fields of the master report via row["Column"] sentence, but it didnŽt
work. As i canŽt attach the file to this message, i will send an e-mail to
you with the report design.

Basically, my problem is the same of this post:
http://dev.eclipse.org/newslists/news.eclipse.birt/msg04551. html

Thanks

Edmilson


Gary Xue wrote:

> Edmilson,
> You can bind the parameters of the subreport data set to an expression that
> refers to the outer report's data. Can you post a sample report design (even
> if it doesn't work) so I can understand what exactly you are trying to do?
Re: Parameters in Scripted Data Source [message #111086 is a reply to message #110805] Wed, 18 January 2006 15:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mateaju.infonet.com.br

Edmilson, if you find any way to use parameters in scripted datasets,
please post here.
Thanks,
Mateus
Re: Parameters in Scripted Data Source [message #112133 is a reply to message #111086] Fri, 20 January 2006 07:51 Go to previous messageGo to next message
Eclipse UserFriend
Gary, have you seen the code i sent to you? I canŽt bind parameters of the
scripted data set to expressions of the master report, because there isnŽt
this option in the scripted dataset editor (as does in the JDBC data set
editor). Is there anyway to create/bind parameters in scripted data set
via report scripting?

Thanks

Edmilson
Re: Parameters in Scripted Data Source [message #112529 is a reply to message #112133] Fri, 20 January 2006 15:04 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Parameters in Scripted Data Source [message #115333 is a reply to message #112529] Wed, 25 January 2006 05:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: droelf.australia.edu

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
Re: Parameters in Scripted Data Source [message #116810 is a reply to message #115333] Wed, 25 January 2006 15:55 Go to previous message
Eclipse UserFriend
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
Previous Topic:Wanna an Xls emitter?
Next Topic:Change the embedded image of a element dinamicaly
Goto Forum:
  


Current Time: Thu Jul 24 06:16:37 EDT 2025

Powered by FUDForum. Page generated in 0.05952 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top