Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是JasperReports Server的新手。
我有一份按时间间隔分组的报告。
我想用户输入以分钟、小时或天为单位对数据进行分组。根据用户输入,报表必须相应地对记录进行分组。
我无法弄清楚方法。请帮忙。
创建一个输入控件“p_days”并在查询的选择语句中添加这一行
SELECT days,hours,minutes, if($P{p_days} is null, days, hours) p_groupby FROM table_name GROUP BY p_groupby ORDER BY p_groupby
但这只会工作几天和几个小时。