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

0

Dear All,

How to show selected display value (Display Text) of a input control in report.When I am using input control in report it is showing me actual value of input control.

Please if anybody know,provide me solution.

Thanks and Regards,

Bhanwar

bschundawat143's picture
Joined: Feb 19 2012 - 10:33pm
Last seen: 4 months 2 weeks ago

1 Answer:

0

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/

Ankur Gupta's picture
Joined: Jan 21 2013 - 10:36pm
Last seen: 1 year 3 months ago
Feedback
randomness