Jump to content
JasperReports Library 7.0 is now available ×

About string query and parameter


yael

Recommended Posts

Hi,

How can I connect parameter as string sql to the queryString ??

Code:

strSql = " AND tasks.watch_date IS NULL ";

 

Code:
[code]
<parameter name="strSql" isForPrompting="true" class="java.lang.String"/>
<parameter name="owner_id" isForPrompting="true" class="java.lang.Integer"/>
<queryString><![CDATA[sELECT * FROM tasks WHERE owner_id = $P{owner_id} $P{strDateSql}
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...