I’m currently working on an input control that uses the SQL Wildcard ‘%’ and the iLike function because my input control uses SQL code to pull back. Now, when I want to display the parameter on my Title band I want it to display my choice of words in replacement of the ‘%’ I’m using as the parameter. Is there any way to alias $P{param_name} to something else when it equals something that I define?
I’m currently working on an input control that uses the SQL Wildcard ‘%’ and
Share
Let’s say your current title band contains a text field with the Text Field Expression
$P{param_name}.In order to filter out the wild card you could just change the Text Field Expression to something like
"%".equals($P{param_name}) ? "All Values" : ("Filtered for '" + $P{param_name} +"'").If the
$P{param_name}contains%it shows All Values, otherwise Filtered for ‘{selected value}’ is shown.