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

How to show selected display value (Display Text) of a input control in report


bschundawat143

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

What you can do here is that you can create another parameter which has a default value as  the Ternary expression, which chooses the appropriate show value for the entered parameter value by the user. 

Suppose there is a parameter called $P{USER_DEFINED} which takes input from the user( in this case suppose user enters 1 or 2)

There you can define another parameter called $P{USER_DEFINED_SHOW_VALUE} now this will not be used as prompt and this will contain a default expression for this case for user inputs 1 and 2 : The default expression looks like: 

$P{USER_DEFINED} ==1
? "One Selected"
: $P{USER_DEFINED} ==2
? "Two Selected"
:""

Now this parameter could be used in the the report to show the selected value of the parameter.

 

Hope that this helps.

Thanks,
Ankur Gupta
http://ankurthetechie.blogspot.in/

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