JasperReports动态输入控件 [英] JasperReports dynamic input controls
问题描述
我目前正在尝试使用一些特殊的输入控件行为创建一个JasperReport报告。我的需求是:
- 四个输入控件,其中两个是日期框,其他是单选按钮
- 根据单选按钮的选择,其中一个数据盒应该是可见的
- 所以如果选择了选项1,则显示两个日期框;如果选择了选项2,则只显示一个日期框
我想知道是否有干净的解决方案 - 没有找到任何内容。 / p>
任何指针都会有所帮助。
表达时打印与JasperReports Server上的输入控件无关。
没有内置支持隐藏和显示基于不同值的输入控件。用于级联输入控件的基础结构当然可以扩展以实现这一目标......但这不是一件容易的事。
我将采用的路径是自定义.jsp页面显示输入控件。 JasperReports Server Ultimate Guide中有一个名为自定义输入控件表单的部分,可以让您从这条路径开始。
I'm currently trying to create a JasperReport report with some special input control behaviour. My needs are:
- four input controls, two of them are dateboxes, the other ones are radio buttons
- depending on radio button choice, one of the databoxes should be visible or not
- so if option 1 is chosen, show both dateboxes; if option 2 is chosen, show only one datebox
I wonder if there's a "clean" solution - didn't find anything.
Any pointers will be helpful.
The Print when expression is not relevant for input controls on JasperReports Server.
There is no built-in support for hiding and showing an input control based on the value of a different one. The infrastructure for cascading input controls can certainly be extended to achieve this... but it would not be trivial.
The path I would take is to customize the .jsp page that displays the input control. There is a section in the JasperReports Server Ultimate Guide called "Customizing the Input Controls Form" which would get you started down this path.
这篇关于JasperReports动态输入控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!