I'm trying to understand how to use the BIRT Library feature.
I currently have a single report project which contains both a library and a sample report. I setup my data source in the library, but I want to setup the data set only in the report and not in the library. Is this possible? I don't see an option to use a data source from the library in my report. When I go in my report and try to add a data set, a dialog box appears which says that no data sources are created and offers to let me add one. I don't want to add a data source, but rather use the data source from the library.
1. Open the Resource Explorer.
2. Open the Outline tab for the report.
3. Drag the data source form the library's data source in the Resource Explorer to the Data Source area in the Outline tab.
This was difficult for me to figure out since I was expecting a right-click menu option (like right-click on the data source in the report and choose 'add from library' or right-click the data source in the library and choose copy and then paste it into the report).
My next step is to test if the data source can be shared across report projects.
Since I am using an odd custom data source, I retested with the built-in JDBC connection using a library and I got the same behavior. Here is a sample from a .rptdesign file referencing a data source defined in a library file:
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc" name="JDBC Data Source" id="7" extends="library.JDBC Data Source">
<encrypted-property name="odaPassword" encryptionID="base64">password</encrypted-property>