I have multiple BIRT reports that obtains the data from the same jdbc data source.
Is it possible to obtain the conection parameters (Driver URL, User Name, and Password) from an external property file o开发者_StackOverflow社区r similar?
Please give one example for it?
It is possible to create common connection in the library and use it in reports.
Step by step:
- Create library: File -> New -> Library
- In the Outline view create new Data Source the same way as you create report data source
- For all reports:
- Open report
- In the Resources view find your newly created Data Source
- Right-click Data Source and choose add to report
- Switch Data Sets to Data Source from library
Due to #343527 you have to be carefull when editing reports referencing library conections. Correctly referenced connection (Data Source) has mini-icon that looks like a small blue chain. If connection data is altered locally, it has also yellow mini-icon looking like (hmm..) a small pencil. When you see it, open report XML Source, find <oda-data-source>
tag and delete all its children.
精彩评论