Skip to main content



      Home
Home » Archived » BIRT » Reusing data
Reusing data [message #259253] Wed, 24 October 2007 04:34 Go to next message
Eclipse UserFriend
Originally posted by: nikolaine.gmail.com

Hello

A database query retrieves data into a dataset. However, I plan to
reuse the same data in 2 sub reports. How do I save the retreived data
in memory and reuse it the sub reports? A global variable collection
may be of use. But, which class ?

Thanks
Niko
Re: Reusing data [message #259370 is a reply to message #259253] Wed, 24 October 2007 16:28 Go to previous messageGo to next message
Eclipse UserFriend
Niko,
You cannot use a global Javascript variable to record a collection of data
rows and reuse the row set in a different table. You can however use a
variable to rememer a single value to use it in a different part of the
report.
I suspect however that you use case may be addressed by either sub queries
(have 2 or more items bound to an outer item's result set), or result set
sharing feature introduced in BIRT 2.2.1. If you can give a concrete example
on the type of report you want, I might be able to suggest a solution.

regards,

--
Gary Xue [Actuate Corporation | BIRT Committer]


"Niko Laine" <nikolaine@gmail.com> wrote in message
news:ffn00r$8u7$1@build.eclipse.org...
> Hello
>
> A database query retrieves data into a dataset. However, I plan to reuse
> the same data in 2 sub reports. How do I save the retreived data in
> memory and reuse it the sub reports? A global variable collection may be
> of use. But, which class ?
>
> Thanks
> Niko
Re: Reusing data [message #259394 is a reply to message #259370] Thu, 25 October 2007 01:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nikolaine.gmail.com

Hi Gary

Thanks for your response. This what I would like to achieve. After
querying and retrieving the data rows, I would like to save it in memory
for reuse . I would like to reuse the data to present the same data as
3 different chart views.

Thanks
Niko




Gary Xue wrote:
> Niko,
> You cannot use a global Javascript variable to record a collection of data
> rows and reuse the row set in a different table. You can however use a
> variable to rememer a single value to use it in a different part of the
> report.
> I suspect however that you use case may be addressed by either sub queries
> (have 2 or more items bound to an outer item's result set), or result set
> sharing feature introduced in BIRT 2.2.1. If you can give a concrete example
> on the type of report you want, I might be able to suggest a solution.
>
> regards,
>
Re: Reusing data [message #259703 is a reply to message #259394] Fri, 26 October 2007 18:05 Go to previous message
Eclipse UserFriend
Niko,
Try this with the 2.2.1 BIRT build. First create a table that binds to the
data set you want to use. Make sure you give this table a name. (You can
hide this table if you don't want it shown in the report). Create your
charts, and have them use the table as the data source. You do this in the
Select Data step in the chart wizard: check "Use report item" and select the
table as the source of data. This will make all your charts use the table's
result set, and the data set query will be run only once.

Does this work for you?

--
Gary Xue [Actuate Corporation | BIRT Committer]


"Niko Laine" <nikolaine@gmail.com> wrote in message
news:ffpalv$sap$1@build.eclipse.org...
> Hi Gary
>
> Thanks for your response. This what I would like to achieve. After
> querying and retrieving the data rows, I would like to save it in memory
> for reuse . I would like to reuse the data to present the same data as 3
> different chart views.
>
> Thanks
> Niko
>
>
>
>
> Gary Xue wrote:
>> Niko,
>> You cannot use a global Javascript variable to record a collection of
>> data rows and reuse the row set in a different table. You can however use
>> a variable to rememer a single value to use it in a different part of the
>> report.
>> I suspect however that you use case may be addressed by either sub
>> queries (have 2 or more items bound to an outer item's result set), or
>> result set sharing feature introduced in BIRT 2.2.1. If you can give a
>> concrete example on the type of report you want, I might be able to
>> suggest a solution.
>>
>> regards,
>>
Previous Topic:Problem with IResultMetaData
Next Topic:problem with exported library on design engine
Goto Forum:
  


Current Time: Wed Jul 16 22:07:01 EDT 2025

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

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

Back to the top