bschundawat143 Posted January 2, 2014 Share Posted January 2, 2014 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 Link to comment Share on other sites More sharing options...
Ankur Gupta Posted January 2, 2014 Share Posted January 2, 2014 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 Guptahttp://ankurthetechie.blogspot.in/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now