1. 行后分页 (ROW() - 3) % 100 = 0
2. 添加数据校验
OR(ISNULL(C3), B3 = C3) 主键不能修改!
OR(E3 = "X", ISNULL(E3)) 删除标记格式错误!
REVERSE(ISNULL(B3)) 不能为空
3. 条件查询
select * from APD_ENV_KPI128_VEHICLE_DEMAND A
WHERE A.DEL_FLG IS NULL
${IF(APD_DT_FR =="", "","AND A.APD_DT >= TO_DATE('"+ APD_DT_FR + "','yyyy-MM-dd')")}
${IF(APD_DT_TO =="", "","AND A.APD_DT < TO_DATE('"+ APD_DT_TO + "','yyyy-MM-dd')+1")}
${IF(YEAR_MONTH=="",""," AND A.YEAR_MONTH ='"+ YEAR_MONTH +"'")}
${IF(PROJECT=="",""," AND A.PROJECT like '%"+ PROJECT +"%'")}
自定义显示
"≥"+$$$*100+"%"
"≤"+$$$*100+"%"
IF($$$ <= 0, TOIMAGE($green, false), IF($$$ > 0.005, TOIMAGE($red, false), TOIMAGE($yellow, false)))
ORDER BY DECODE(T.FACTORY_DESC,'语文',1, '数学',2,'英语',3)
最小值: MIN(G5{REVERSE(ISNULL(G5))},G6{REVERSE(ISNULL(G6))})
最大值: MAX(G5,G6)
html自定义 CONCATENATE("<font color=red>*</font>", "基础车型代码")
参数提交: _g().parameterCommit();
SQL函数-http://help.finereport.com/doc-view-846.html
js调用存储过程
按钮的点击事件调用,FR.remoteEvaluate('=SQL("JDBC2","call pro_test",1,1)') ,JDBC2就是你的数据源连接名,存储过程必须返回一个结果集,哪怕select 1 这样
var sql = FR.remoteEvaluate('=SQL("FRDemo","SELECT 订单ID FROM 订单 where 订单ID < 10006",1,1)')
alert(sql)