从iReport中的子数据集返回值 [英] Return value from subdataset in iReport

查看:76
本文介绍了从iReport中的子数据集返回值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道可以从子报表到iReport中的主报表获取返回值.还有子数据集,它们也可以具有自己的SQL查询,例如子报表.据我了解,子数据集只能与列表,图表等一起使用,但是我不知道如何访问主数据集/报告中的子数据集字段,变量和参数.

I know that it is possible to get a return value from a subreport to the main report in iReport. Also there are subdatasets which can also have an own SQL query like a subreport. As I understand a subdataset can only be used with list, charts etc., but I don't know how to access the subdataset fields, variables and parameters in the main dataset/report.

是否还可以从子数据集中获取返回值?如果没有,怎么可能从子数据集中访问值?

Is it also possible to get a return value from a subdataset? If not, how is it possible to access values from the subdataset?

推荐答案

当前无法在主报表结构中使用子数据集查询.最好的选择是使用表格元素,可能只输出一个字段即可完成您想要做的事情.

It is currently not possible to use a subdataset query in the main report structure. Your best option would be to use a table element, possibly only outputting one field to accomplish what you want to do.

否则,您将需要重组查询以适应在主报表中包含数据的需求.

Otherwise you would need to restructure your query to accommodate your needs to have data in the main report.

这篇关于从iReport中的子数据集返回值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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