从 BIRT 中的 POJO 生成动态报告
我想知道在 BIRT 中从 POJO(而不是数据库!)创建动态报告的最佳方法是什么。我是 BIRT 的新手,但我对各种各样的信息感到不知所措,而且没有一个地方可以获取所有信息。因此,如果有人能建议我最好的方法,以便我可以学习并在此基础上继续发展,我会很高兴。
我的程序生成一个 POJO(我们称之为报告),其中包含所有要发布的数据。现在,BIRT 应该读取此 POJO 并生成报告。该报告包含多个表(例如 A、B、C...),每个表都有自己的结构(所有这些信息都在报告中)。由于没有任何方面是静态的,所以我迷失了。
我读了一些教程,但它们都是从静态(/模拟)数据集或从数据库检索的数据集进行解释,并且没有解释很多事情,例如如何动态创建列......
提前致谢,
I was wondering what's the best way to create a dynamic report from POJO(and not databases!) in BIRT. I'm new to BIRT, but I'm overwhelmed by the variety of information and no one go-to place for all the information. So, I'll be glad if anyone can suggest me the best way so that I can learn and build on it.
My program generates a POJO(let's call it report) that contains all the data to be published. Now, the BIRT should read this POJO and generate the report. The report contains several tables(say A,B,C...) and each table has its own structure(all this information is in the report). Since no aspect is static, I'm lost.
I read some tutorials, but they all explain from static(/mock) datasets or datasets retrieved from databases and don't explain many things like how to create columns on the fly....
Thanks in advance,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
脚本化数据集是一种方法。另一种方法是创建您自己的 ODA 数据源。后者要复杂得多,但如果您打算经常重用它并且需要在后端访问多种不同形式的数据,那就更好了。
Scripted data sets are one way. Another is to create your own ODA data source. The latter is much more complicated, but better if you plan on reusing it frequently and need to access several different forms of data on the backend.
BIRT 可能令人畏惧。别难过。我不得不做一些类似于你去年所说的事情。以下是一些对我有帮助的参考资料。
http://www.birt-exchange.com/be/home/
他们birt-exchange 有论坛。与 StackOverflow 等一般网站相比,BIRT 专家似乎会更多地阅读这些内容。您可能会更幸运地在那里获得具体答案。
Integrating and Extending BIRT 这本书也非常有用。
http://www.amazon.com/Integrating-Extending-BIRT-Jason-Weathersby/ dp/0321443853
最后但并非最不重要的一点是,我建议查看 Birt Exchange 上的示例,它们生成的图表和报告与您想要做的类似。从示例中找出使用模式要容易得多。
祝你好运。
BIRT can be daunting. Don't feel bad. I had to do something similar to what you are talking about last year. Here are some references that were helpful to me.
http://www.birt-exchange.com/be/home/
They have forums at birt-exchange. These seem to be read more by BIRT experts than a general site like StackOverflow. You may have better luck getting specific answers there.
The book Integrating and Extending BIRT was also very useful.
http://www.amazon.com/Integrating-Extending-BIRT-Jason-Weathersby/dp/0321443853
And last but not least, I recommend looking at the examples on Birt Exchange that produce graphs and reports that are similar to what you are trying to do. It is much easier to figure out the patterns of usage from an example.
Good luck.