|
Re: how can I use data source defined in library? [message #224208 is a reply to message #224193] |
Mon, 12 March 2007 16:19   |
Leos Literak 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   |
Eclipse User |
|
|
|
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  |
Leos Literak 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
|
|
|
Powered by
FUDForum. Page generated in 0.01875 seconds