Jump to content
We've recently updated our Privacy Statement, available here ×

queryString - how to print onto a report


2005 IR Help

Recommended Posts

By: amit das - amitdas91

queryString - how to print onto a report

2004-06-03 23:05

I am trying to take the queryString value and print in directly onto my final report.

I have tried to get queryString to print as a parameter or as a variable with no luck.

 

I just want to "spit out" the final query onto my report.

 

Thanks,

Amit

 

 

 

 

By: Lucian Comanescu - lucicom

RE: queryString - how to print onto a report

2004-06-04 00:05

Hi!

 

No, you can't get it directly. But why not setting it by yourself?

 

<parameter name="SQL_QUERY" class="java.lang.String">

<defaultValueExpression>

<![CDATA["SELECT * FROM Address WHERE City NOT IN ( " + $P{FilterClause} + " ) ORDER BY " + $P{OrderClause}]]>

</defaultValueExpression>

</parameter>

 

<!-- The query string -->

<queryString>$P!{SQL_QUERY}</queryString>

 

and then you can print it like any other param.

 

Works for you?

Lucian.

 

 

 

 

 

By: amit das - amitdas91

RE: queryString - how to print onto a report

2004-06-04 10:39

Lucian,

 

Thanks! that works but one small issue.

When inserting a string parameter into the SQL_QUERY I would like to insert like:

+ $P!{FilterClause} +

instead of

+ $P{FilterClause}

 

I dont want the single quotes that automatically get appened with $P{xyx}

 

Thanks,

Amit

Link to comment
Share on other sites

  • Replies 0
  • 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...