嗨,我正在尝试获得一份主详细报告。但是当我点击预览的下一页时,报告总是崩溃。这两个查询在查询编辑器中都可以正常工作。
主报表查询
select a.Name,a.ftid,a.instno from testschema.ViewA a where a.ftid={?ftid}
在主报告中单独声明的共享变量
shared numbervar instno;
instno:={Command.INSTNO}
shared stringVar gnpidesc;
gnpidesc:={Command.Name}
子报表查询
select a.TOTALAMT,b.Name from testschema.ViewB a CROSS JOIN testschema.View3 b where a.ftid={?ftid} AND b.ftid=a.ftid AND b.instno={?instno} AND a.Name='{?gnpidesc}' ORDER BY a.GENGNPIDESC
在子报表头中单独声明的共享变量
shared numbervar instno;
shared stringVar gnpidesc;
我已经删除了 3 个参数字段也具有相同的名称。子报告仅显示主中的第一行,如果我单击下一页应用程序崩溃。
编辑 子报表在子报表头部分包含一个交叉表报表。报告布局
Main Report
- Details Section (Main report query)
- Details Section2 (Sub report)
- Cross-tab (Sub report Footer- Query 2)
Main Report