我有三個參數$P{Clss}
(從船上選擇類),$P{MinWeight}
和$P{MaxWeight}
。每當我離開$P{Clss}
空白它總是顯示任何頁面。Jaspersof iReport - 如何返回所有記錄參數爲空時
我的WHERE子句有什麼問題?我試過這個。
where first.class = $P{Clss} or $P{Clss} is null and displacement between $P{MinWeight} and $P{MaxWeight}
where $P{Clss} is null or $P{Clss} = first.class and displacement between $P{MinWeight} and $P{MaxWeight}
我閱讀博客和與此相關的問題,但不知何故,始終不顯示任何頁面或我想我真的這裏只是一個菜鳥。
哎呀我忘記告訴主要的罪魁禍首:D,**看到更新的答案** ..(Y) –