Skip to main content



      Home
Home » Archived » BIRT » Importing a Subreport
Importing a Subreport [message #74091] Wed, 14 September 2005 15:49 Go to next message
Eclipse UserFriend
Originally posted by: sevag.gharibian.embarcadero.com

Hi all,

I was wondering if anybody could tell me if there's a way to import one
report into another, like Java import statements/C++ include statements?

i.e. Say i have a report called Car, and i have a report called Tires. I'd
like to have Tires be a subreport in Car. Is there an import statement of
sorts to make this happen? I'd prefer not to cut and paste the contents of
Tires into the Car report.

Thanks in advance for any help,
Sev
Re: Importing a Subreport [message #74127 is a reply to message #74091] Wed, 14 September 2005 16:59 Go to previous messageGo to next message
Eclipse UserFriend
Sev,

I don't believe that there is a way to do this in 1.0, or if there is,
it is not pretty. This is one of the functions that will be supported
in BIRT 2.0. Here is a link to the spec document.

http://eclipse.org/birt/wiki/index.php?n=BPS.BPS10


Scott Rosenbaum
BIRT PMC

BIRT Newsgroup wrote:

>Hi all,
>
>I was wondering if anybody could tell me if there's a way to import one
>report into another, like Java import statements/C++ include statements?
>
>i.e. Say i have a report called Car, and i have a report called Tires. I'd
>like to have Tires be a subreport in Car. Is there an import statement of
>sorts to make this happen? I'd prefer not to cut and paste the contents of
>Tires into the Car report.
>
>Thanks in advance for any help,
>Sev
>
>
>
>
Re: Importing a Subreport [message #74145 is a reply to message #74127] Wed, 14 September 2005 17:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sevag.gharibian.embarcadero.com

Hi,


Thank you for your response. I was wondering if there was a way to do this
programmatically instead using the Report Engine API? Some sort of hack
until 2.0 is released?

Thanks again,
Sev



"Scott Rosenbaum" <scottr@innoventsolutions.com> wrote in message
news:43288F2A.40907@innoventsolutions.com...
> Sev,
>
> I don't believe that there is a way to do this in 1.0, or if there is, it
> is not pretty. This is one of the functions that will be supported in
> BIRT 2.0. Here is a link to the spec document.
>
> http://eclipse.org/birt/wiki/index.php?n=BPS.BPS10
>
>
> Scott Rosenbaum
> BIRT PMC
>
> BIRT Newsgroup wrote:
>
>>Hi all,
>>
>>I was wondering if anybody could tell me if there's a way to import one
>>report into another, like Java import statements/C++ include statements?
>>
>>i.e. Say i have a report called Car, and i have a report called Tires. I'd
>>like to have Tires be a subreport in Car. Is there an import statement of
>>sorts to make this happen? I'd prefer not to cut and paste the contents of
>>Tires into the Car report.
>>
>>Thanks in advance for any help,
>>Sev
>>
>>
Re: Importing a Subreport [message #74293 is a reply to message #74145] Thu, 15 September 2005 03:09 Go to previous messageGo to next message
Eclipse UserFriend
What I personnaly do is divide my report into sections (grids).

So my main report contains every subreport, all I do is hide the ones
which don't have to be displayed...

I pass a map as parameter to the report engine (variable name is
'showMap'), containing the list of sections to be showed.
This is done by using, in my application code, something like

task.addScriptableObject("showMap", map);

I then set the 'visibility' Property of the grids (or any other
structure you want to use) to Hide element with this expression:

showMap.get("sectionName") == null


But this is just an example, I'm no expert ;o).

Frédéric


>Hi,
>
>
>Thank you for your response. I was wondering if there was a way to do this
>programmatically instead using the Report Engine API? Some sort of hack
>until 2.0 is released?
>
>Thanks again,
>Sev
Re: Importing a Subreport [message #74452 is a reply to message #74293] Thu, 15 September 2005 11:39 Go to previous message
Eclipse UserFriend
Originally posted by: sevag.gharibian.embarcadero.com

No, you've misunderstood me, i think :-) What i'd like is a way to write a
subreport once, and import it into many different main reports without
having to copy and paste the actual contents of the subreport into each
report.

Thanks,
Sev


"Frederic Ferrant" <frederic@ferrant.be> wrote in message
news:147ii19bv73p6uj17fgs67ar14qjh4ngid@4ax.com...
> What I personnaly do is divide my report into sections (grids).
>
> So my main report contains every subreport, all I do is hide the ones
> which don't have to be displayed...
>
> I pass a map as parameter to the report engine (variable name is
> 'showMap'), containing the list of sections to be showed.
> This is done by using, in my application code, something like
>
> task.addScriptableObject("showMap", map);
>
> I then set the 'visibility' Property of the grids (or any other
> structure you want to use) to Hide element with this expression:
>
> showMap.get("sectionName") == null
>
>
> But this is just an example, I'm no expert ;o).
>
> Fr
Previous Topic:Problem connecting width db2 V8.1
Next Topic:New datasource running on RCP
Goto Forum:
  


Current Time: Fri Apr 25 21:31:44 EDT 2025

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

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

Back to the top