是否可以在包含子报表的单个报告中使用StoredProcedure和 JRdatasource ( JRBeanCollectionDataSource )?
存储过程在主报告中用完, JR 数据源将用于子报告。
使用Spring MVC
答案 0 :(得分:1)
是的,有可能。您可以将子集合中的Bean集合传递为变量。
然后在主报告中进行程序调用, 有两种可能性:
1. If your procedure returns some thing and if you would like to use in
the report, then you have to create a function, type and type table
(for holding the result set) for calling the procedure.
2. If the procedure does some DML operation, then you can call directly (without a function)