您可以在Crystal Report中切换分组吗?

时间:2021-04-02 07:36:16

Is it possible to have a report which has grouping on the underlying data but for which you can disable the grouping via a button or something on the report? Basically I want to have a "Summary Report" which is grouped, but then be able to view the detail beneath when required without having a separate report for it.

是否可以生成一个报告,该报告对基础数据进行分组,但您可以通过按钮或报告中的某些内容禁用分组?基本上我想要一个“摘要报告”,它被分组,但是在需要时可以查看下面的详细信息而不需要单独的报告。

1 个解决方案

#1


1  

Put your data in the group headers and footers, then have the detailed data in the details section. In the details section, set a formula on the suppress to be based on a report parameter. Then when you want a detailed report, pass in the parameter as false and it won't suppress the details section. You can toggle the header and footer of the groups this way too.

将您的数据放入组页眉和页脚,然后在详细信息部分中提供详细数据。在详细信息部分中,将抑制上的公式设置为基于报表参数。然后,当您需要详细报告时,将参数传递为false,它不会取消详细信息部分。您也可以通过这种方式切换组的页眉和页脚。

You cannot get rid of a grouping, but if you wanted to have something similar, you could use a field that you populate to group by. If you want the grouping, you fill in this field with the data you need to group by, and if you want the detail, just leave that field set to blank and then suppress the group header and footer.

你不能摆脱分组,但如果你想要有类似的东西,你可以使用你填充的字段来分组。如果要进行分组,请在此字段中填入分组所需的数据,如果需要详细信息,只需将该字段设置为空白,然后取消组页眉和页脚。

#1


1  

Put your data in the group headers and footers, then have the detailed data in the details section. In the details section, set a formula on the suppress to be based on a report parameter. Then when you want a detailed report, pass in the parameter as false and it won't suppress the details section. You can toggle the header and footer of the groups this way too.

将您的数据放入组页眉和页脚,然后在详细信息部分中提供详细数据。在详细信息部分中,将抑制上的公式设置为基于报表参数。然后,当您需要详细报告时,将参数传递为false,它不会取消详细信息部分。您也可以通过这种方式切换组的页眉和页脚。

You cannot get rid of a grouping, but if you wanted to have something similar, you could use a field that you populate to group by. If you want the grouping, you fill in this field with the data you need to group by, and if you want the detail, just leave that field set to blank and then suppress the group header and footer.

你不能摆脱分组,但如果你想要有类似的东西,你可以使用你填充的字段来分组。如果要进行分组,请在此字段中填入分组所需的数据,如果需要详细信息,只需将该字段设置为空白,然后取消组页眉和页脚。