当数据集不为空时,不显示明细区域 [英] Detail Band Not Shown When Dataset NOT Empty

查看:71
本文介绍了当数据集不为空时,不显示明细区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遇到的问题是,即使数据集不为空,我的明细栏也不会显示.

The problem encountered was that my detail band is not shown even when the dataset is not empty.

我在明细栏中有一个表,而我的jrxml最初是起作用的,但是当我切换到另一个数据源时,明细栏不会显示.我的理解是该报告以某种方式认为我的数据源是空的,因此由于我将当无数据类型时"设置为所有节均无明细",因此它没有显示明细范围.

I have a table inside the detail band, and my jrxml worked initially, but when I switched to another datasource, the detail band is not displayed. My understanding is that the report somehow thinks my datasource is empty, so it is not showing the detail band since I set "When No Data Type" to "All Sections No Detail."

但是,我很确定数据源不为空并且包含一些数据.原因是当我将表格从明细区域移到摘要区域时,会显示该表格并填充正确的数据.

However, I'm pretty sure that the datasource is not empty and contains some data. The reason is that when I move the table from the detail band to the summary band, the table is shown and populated with correct data.

我想知道是否有人之前遇到过相同的问题,或者知道如何解决此类问题.

I'm wondering if anyone has encountered the same problem before or know how to solve this type of issue.

推荐答案

您已选择所有部分否详细信息.如果您的主要数据集为空,它将跳过详细信息带,但会打印所有其他部分.

You have selected All section No Detail. It will skip detail band if your main dataset is empty but prints all the other section.

如果您的表组件不依赖于主要数据集,则在汇总带中使用.

If your table component is not depend on main dataset then use in summary band.

这篇关于当数据集不为空时,不显示明细区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆