Allowing only one parameter to fill by user out of 2 param

0

Hi,

I have created 2 text field parameters in jasper server , I want the user to enter in only one parameter among 2 of them (like we select radio buttons).

Is there any way?

Or else can I add "OR" between these 2 text fields parameters.

 

Thank you.

chaitanya.koli's picture
Joined: Oct 3 2016 - 6:51am
Last seen: 2 years 9 months ago

3 Answers:

0

 In the Jasper Studio, parameter options can be found for this option.

Parameter Options - > is for Prompting.

By default this is switched to True. You can disable it and the parameter will be hidden.

reportdev's picture
1224
Joined: Oct 12 2015 - 12:05pm
Last seen: 2 weeks 17 hours ago
0

Not as in a radio box. One possibility may be to use cascading input control but this will add another input control to select which parameter to enter.

hozawa's picture
47007
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 months 1 week ago
0

Hi hozawa, 

How can I acheive cascading input control in jasper server.

I already created 3 parameters for 2 input where I adding first 2 parameters in 3rd param.

For eg: In AWB_NO_PARAM I added 2 param within it ORDER_NO and AWB_NO :

($P{AWB_NO}==""?
($P{ORDER_NO}==""?"AND ORDER_NO IN('1')":"AND ORDER_NO IN('"+$P{ORDER_NO}.replaceAll(",","','").replaceAll(" ","")+"')")
:" AND AWB_NO IN('"+$P{AWB_NO}.replaceAll(",","','").replaceAll(" ","")+"')")

But how I can force user to enter details in only one parameter in jasper server? where I am showing him both parameter "AWB NO" and "ORDER NO"

chaitanya.koli's picture
Joined: Oct 3 2016 - 6:51am
Last seen: 2 years 9 months ago
Feedback
randomness