简体   繁体   English

Birt 报告 Rest api 数据源

[英]Birt report Rest api Data source

We are using Birt report viewer to create reporting pages.我们正在使用 Birt 报告查看器来创建报告页面。 We use jdbc data source to connect with a Oracle database.我们使用 jdbc 数据源与 Oracle 数据库连接。 But is it possible to use a rest api (json format) as data source for the reports?但是是否可以使用rest api(json格式)作为报告的数据源? Does someone has experience with this?有人有这方面的经验吗?

BIRT has no build in JSON data source. BIRT 没有内置 JSON 数据源。 However there are some community JSON data source plugins, but all of them I have seen are very low level and not comfortable to use, so I do not recommand any of them here.不过也有一些社区的JSON数据源插件,但我见过的都是非常低级的,用起来不太舒服,所以这里不推荐。

You could create a "scripted data source" where you connect to your URL and parse the result by yourself but this is also not very comfortable.您可以创建一个“脚本数据源”,您可以在其中连接到您的 URL 并自行解析结果,但这也不是很舒服。 Someone tried it here so you have a starting point.有人在这里尝试过,所以你有一个起点。

If you are in charge of the infrastructure providing the JSON output it would be easier to add an export to XML and use the BIRT build in XML data source.如果您负责提供 JSON 输出的基础设施,那么将导出添加到 XML 并使用 XML 数据源中的 BIRT 构建会更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM