jasper reports - parameters for ‘in clause’
来源:互联网 发布:局域网禁止p2p软件 编辑:程序博客网 时间:2024/06/11 00:26
今天有个需求,把参数传到 jasperReport 中,并且放到 where 的 in 条件式中, 比如 where id in (1,2,3)
后来发现了 $X{} 的用法,如下
Supply the parameter as a List:
<parameter name="myList" isForPrompting="true" class="java.util.List"/>
Then use the the function
$X{IN, <column>, <param>}
For example
<queryString><![CDATA[SELECT *FROM mytable WHERE $X{IN, mycolumn,myList}]]></queryString>
Very useful!
ref: http://blog.anorakgirl.co.uk/?p=29
- jasper reports - parameters for ‘in clause’
- Java Injection in Jasper Reports
- Trouble with expressions in Jasper Reports
- for clause in Java
- Jasper Reports
- How to Set Relative Path for Jasper Reports Image
- ORA-20083: No ST_SRID supplied in PARAMETERS clause.
- mysql常见问题--target table for update in FROM clause
- Passing parameters to a Jasper report
- The FOR UPDATE Clause
- Phrases Used In Reports
- Mysql - You can't specify target table 'dataproduct' for update in FROM clause
- You can't specify target table 'wms_cabinet_form' for update in FROM clause
- You can't specify target table 'table name' for update in FROM clause
- MySQL报错“ you can't specify the target table for ‘update’ in from clause”
- You can't specify target table 'sc1' for update in FROM clause
- [Err] 1093 - You can't specify target table 's' for update in FROM clause
- mysql中You can't specify target table for update in FROM clause错误
- 1
- 双机无线互联设置|共享上网
- 大小写转换
- [技术讨论]务实与务虚
- 2
- jasper reports - parameters for ‘in clause’
- 嵌入式系统设计缺陷案例
- fflush()函数介绍
- 解决拨号连网导致的不能正常关机的问题
- zhcon配置
- 2009-9-25基金:节后A股市场震荡上扬是主基调
- SQL中通配符、转义符与括号的使用
- sudoers文件配置(转)
- 打印