Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » how can I use data source defined in library?
how can I use data source defined in library? [message #224193] Mon, 12 March 2007 16:07 Go to next message
Leos Literak is currently offline Leos LiterakFriend
Messages: 115
Registered: July 2009
Senior Member
Hi,

I always have troubles with library related UI.
I can define anything in library (data set, embedded
image, parameter) but it is extremely painful to
use them in reports that use that library :-(

Now I defined data set in library. What are the step
to reference it from report? Where shall I click?

Thanks

leos
Re: how can I use data source defined in library? [message #224208 is a reply to message #224193] Mon, 12 March 2007 16:19 Go to previous messageGo to next message
Leos Literak is currently offline Leos LiterakFriend
Messages: 115
Registered: July 2009
Senior Member
I moved Library explorer tab under layout panel,
so it is not in same area with Outline tab. Now
I am able to drag and drop database and parameters
to outline. But when I drop it there, it tells me,
that library with this prefix already exists and
that I should specify different prefix. If I do,
there is an error, that library is already included
and it cannot be added twice.

This is BIRT 2.1.2. What is correct way, how to reference
datasource from library in report design?

Leos

Leos Literak napsal(a):
> Hi,
>
> I always have troubles with library related UI.
> I can define anything in library (data set, embedded
> image, parameter) but it is extremely painful to
> use them in reports that use that library :-(
>
> Now I defined data set in library. What are the step
> to reference it from report? Where shall I click?
>
> Thanks
>
> leos
Re: how can I use data source defined in library? [message #224372 is a reply to message #224208] Mon, 12 March 2007 21:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Leos Literak wrote:
> I moved Library explorer tab under layout panel,
> so it is not in same area with Outline tab. Now
> I am able to drag and drop database and parameters
> to outline. But when I drop it there, it tells me,
> that library with this prefix already exists and
> that I should specify different prefix. If I do,
> there is an error, that library is already included
> and it cannot be added twice.
>
> This is BIRT 2.1.2. What is correct way, how to reference
> datasource from library in report design?
>
> Leos
>
> Leos Literak napsal(a):
>> Hi,
>>
>> I always have troubles with library related UI.
>> I can define anything in library (data set, embedded
>> image, parameter) but it is extremely painful to
>> use them in reports that use that library :-(
>>
>> Now I defined data set in library. What are the step
>> to reference it from report? Where shall I click?
>>
>> Thanks
>>
>> leos
You should be able to just drag the item from the library explorer.
Does the Library explorer show multiple libraries? Also I believe the
resource folder set in preferences defaults to the current directory, so
try placing your libs in a different directory.

Jason
Re: how can I use data source defined in library? [message #224547 is a reply to message #224372] Tue, 13 March 2007 07:59 Go to previous message
Leos Literak is currently offline Leos LiterakFriend
Messages: 115
Registered: July 2009
Senior Member
Jason Weathersby napsal(a):
> You should be able to just drag the item from the library explorer.
> Does the Library explorer show multiple libraries? Also I believe the
> resource folder set in preferences defaults to the current directory, so
> try placing your libs in a different directory.

Jason,

I tried your suggestion, but no combination of resources folder lead to the
success. But while trying various combinations I set some sandbox folder,
where I had my first reports and a library. Just for curiosity I dragged
its parameter and data source to my report - and it worked as you
described! Immediatelly I diffed XML source and found, how references are
defined:

<scalar-parameter name="param1" id="606" extends="prefix.param1"/>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
name="database" id="608" extends="prefix.database"/>

I have inserted such elements into my report and it works! Nevertheless
the UI way does not work for me. If I remove my library from report
and drag element, BIRT complains that parent is not set. If I use the
library and drag the element, it complains that prefix is already used
and if I change it in that dialog, it tolds me that one library cannot
be referenced twice. I have used the library in the report for styles
and referenced images. This may be the source of the bug. When I will
have some free time, I will try to create simple scenerio to demonstrate
it.

Leos
Previous Topic:BIRT - All in One - 2.2M5 - ExpressionCompiler error
Next Topic:Yellowfin Developer Evaluation version.
Goto Forum:
  


Current Time: Fri Apr 26 12:32:21 GMT 2024

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

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

Back to the top