开发者

how to write properties file for birt reports?

开发者 https://www.devze.com 2023-04-12 18:45 出处:网络
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 fi

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:

  1. Create library: File -> New -> Library
  2. In the Outline view create new Data Source the same way as you create report data source
  3. For all reports:
    1. Open report
    2. In the Resources view find your newly created Data Source
    3. Right-click Data Source and choose add to report
    4. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号