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

how to select multiple value of a multi select list(checkbox) in jasper server


kavita.negi

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

Try optional prompt with input control so that if no values check then it takes all values of list by default.

Or

Use optional prompt with dynamic where condition i.e (where condition in parameter $P!{})

If no value select from list then where condition not involve in query hence all values get from list. 

Hope this helps.

Thanks,

Ajinkya

 

Link to comment
Share on other sites

Select *

From Table_name

Where F2=$P{P2}

$P!{P1}

P1 parameter expression== iif(($P{P1}==null? ' ' :  "AND F1=$P{P1}")

So if no values select from list then no parameter used in where condition.

When some value select from list then AND F1=$P{P1} part involved in query.

Thanks

Ajinkya

Link to comment
Share on other sites

  • 3 weeks later...

I found a solution to my problem 

by modyfing the default parameter template file and setting the checked option true .It show all the values selected .

But while getting these parameters inside custom jre source java code they are empty. Will you explain why nothing is transfer even after puttting check mark on all check boxes.

 

 

 

 

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