开发者

can we pass an sql query string as a param into report?

开发者 https://www.devze.com 2023-04-01 03:27 出处:网络
Can we pass an sql query string as a param into Jaspe开发者_Go百科rReports report? I want the query string be passed as a simple String type parameter into the report at run-time and the fields return

Can we pass an sql query string as a param into Jaspe开发者_Go百科rReports report? I want the query string be passed as a simple String type parameter into the report at run-time and the fields returned by this query be available for this report; is it possible ?


Mannyee, yes of course, you can pass the formed SQL query.
It can be something like this:

<parameter name="queryString" isForPrompting="true" class="java.lang.String">
...
<queryString><![CDATA[$P!{queryString}]]></queryString>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号