JasperReport parameters works in iReport but fails on JasperServer

瘦欲@ 提交于 2019-12-01 20:46:07

问题


I have a report created in iReport. Have a parameter set with isForPrompting="true". When I go and test it with preview, everything works.

Parameter: Symbol
SQL Query: select * from "table" where "column" = $P{Symbol}  -- I'm using Postgres.

Then I use Repository Navigator to upload it to the server. The server returns "no pages" Any thoughts. I've verified that the report work in both iReport and JasperServer if parameter is removed and the value is hard coded into to the sql query like below.

<queryString>
    <![CDATA[select * from "tablename" where "column" = 'testsymbol']]>
</queryString>

回答1:


Yes, it was the input control. It's working now... thanks @precose!!!



来源:https://stackoverflow.com/questions/9459409/jasperreport-parameters-works-in-ireport-but-fails-on-jasperserver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!