Jump to content
Changes to the Jaspersoft community edition download ×

What input control type to use for entering multiple values


jkeri

Recommended Posts

My user has to enter single or multiple values for a paramater. WHen I try to create the input control, I do not see an option under 'TYPE"  similar to 'SINGLE VALUE' to allow multiple values.

There is no list of values not SQL equery required.  All the user has to do is to enter one or more values for the parameter.

 

What would i select for the TYPE when creating the input control?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

JasperServer doesn't provide support directly for this type of input, but you still have options. I've seen this type of UI input before, but it's rare and is implemented many different ways. 

You can after input, within the report and possibly some supporting java code, break up the user's input whatever way you'd like. In other words, you could pass in a comma delimited string "single value" input/parameter and parse that within the report. What's missing is validation at the point of input; if your user enters garbage, you'd already be in the "run report with inputs" stage.

Alternatively, you can create your own custom input control, but be warned this is an advanced approach (in terms of Jasper Server customization) that would require much work. You may be able to get away with reusing most of the "single value" input code and simply modify validation to fit your needs.

Link to comment
Share on other sites

i belive you are creating the report using studio and declaring a parameter in the studio. 
If my above assumption is true you can keep the parameter datatype as java.util.collection
this will let the user to enter one or more values in the parameter which is created in the jasper server

 

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