Select and then edit parameter result

0

Dear community,

I would like to achieve the following

1. A single select query parameter has a list, where the user can select one entry

2. Once the user selects a value from the list, this value should be displayed in a "Single Value" parameter to allow the user to change the text

I do know ( :-) ) how to do 1., but how do I pass the selected value of a single select query parameter to a "single value" parameter to allow the user to change?

Thanks a lot!

cheers
Volker

volker_3's picture
Joined: Apr 7 2016 - 4:34am
Last seen: 9 months 1 week ago

3 Answers:

0

Cascading parameters. https://community.jaspersoft.com/blog/cascading-parameters-jasper-reports-0

Read more about cascading parameters concept. 

Once the user selects a first parameter, the list value would be sent into the second parameter SQL where clause

reportdev's picture
1226
Joined: Oct 12 2015 - 12:05pm
Last seen: 4 weeks 19 hours ago
0

Hello reportdev,

I do know how to do cascading parameters and limit the second list based on the first list; this wasn't the question. The question is, how can I send a selected value into a "single text parameter" to allow the user to edit?

Basically, the list has a set of predefined values - with placeholders though, and the user wants to select a text and then edit as needed for each report execution.

For example: The user selects "Please take x tablets daily" from the drop down and does then want to replace the x with a number.

Thanks!

volker_3's picture
Joined: Apr 7 2016 - 4:34am
Last seen: 9 months 1 week ago
0

I have tried it and it does not work... probably you will end up with 2 parameters. 

One to select the "Please take x tablets daily", 

Second to select number of tablets

reportdev's picture
1226
Joined: Oct 12 2015 - 12:05pm
Last seen: 4 weeks 19 hours ago
Feedback
randomness