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.
我们可以将 sql 查询字符串作为参数传递给JasperReports报告吗?我希望在运行时将查询字符串作为简单的字符串类型参数传递到报告中,并且此查询返回的字段可用于此报告;可能吗 ?
Mannyee,是的,当然,您可以通过已形成的 SQL 查询。 它可以是这样的:
<parameter name="queryString" isForPrompting="true" class="java.lang.String"> ... <queryString><![CDATA[$P!{queryString}]]></queryString>