简体   繁体   English

BIRT生成动态报告

[英]BIRT generate dynamic reports

I created a report in birt, where I would like to click on one of the data points in the report. 我在birt中创建了一个报告,我想单击该报告中的数据点之一。 Then it should link to a new dynamically generated report, that shows the data from the date where I clicked on the last report. 然后,它应该链接到一个新的动态生成的报告,该报告显示我单击上一个报告以来的数据。

I got a little .gif for you, to demonstrate what I've already done. 我为您准备了一个.gif,以演示我已经完成的工作。 HERE 这里

I did this by creating two reports. 我通过创建两个报告来做到这一点。 The first one being the graph with the two lines which represent random test data. 第一个是带有两条线的图形,它们代表随机测试数据。 When I press on one of the rectangles from the graph, a hyperlink gets called, which sends me to the second report. 当我按下图形中的一个矩形时,将调用一个超链接,该超链接会将我发送到第二个报告。 This was done by adding a mouse click interaction on the Y values with a drill-through that directs you to another report. 这是通过在Y值上添加鼠标单击交互作用以及带有将您定向到另一个报表的追溯功能来完成的。

Here is my problem: I want the 2nd report to dynamically adapt according to the date which I selected on the first report. 这是我的问题:我希望第二个报告能够根据我在第一个报告中选择的日期进行动态调整。 Like seen in the example .gif. 就像在示例.gif中看到的那样。 Select 31.07.2017 -> show detail from that date. 选择31.07.2017->显示该日期的详细信息。

I don't want to create a new report for every single date and manually link every single one of them to the correct date. 我不想为每个日期创建一个新报告,并手动将其中的每个链接链接到正确的日期。 This would be tedious and with updating, new data every day it would also be impossible to maintain. 这将是乏味的,并且每天更新新数据也将无法维护。

So how do I do this? 那么我该怎么做呢?

Alright, I made it work with data set parameters and report parameters. 好吧,我使它可以与数据集参数和报告参数一起使用。

Details for the answer can be found HERE 答案的详细信息可以在这里找到

All I had t do is define a paramater and pass the values from my report 1 to my report 2 via the parameter and its working! 我所要做的就是定义一个参数,并通过参数及其工作将值从报表1传递到报表2!

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

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