Jump to content
Changes to the Jaspersoft community edition download ×

scriptlet call within a queryString?


itchytoes

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can do that by defining an extra parameter and calling the scriptlet in its default value expression:

Code:

<parameter name="MyParam"/>
<parameter name="MyProcessedParam">
<defaultValueExpression>$P{REPORT_SCRIPTLET}.process($P{MyParam})</defaultValueExpression>
</parameter>
<queryString>select ... $P{MyProcessedParam} ...</queryString>

 

HTH,

Lucian

Link to comment
Share on other sites

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...