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

How to create dropdown list for a parameter in Jaspersoft Studio?


JS-newbie

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

<parameter name="dropDownList" class="java.util.ArrayList">
        <defaultValueExpression><![CDATA[Arrays.asList("One", "Two", "Three")]]></defaultValueExpression>
    </parameter>

Try adding this to your jrxml and see if it works for you. 

Its basically an ArrayList type parameter with a default value expression of Arrays.asList("One", "Two", "Three")

Link to comment
Share on other sites

Dynamic SQL based input controls are part of report configuration on the server. 

On the server, in addition to jrxml, an xml is also used to query the database and pull the resultset even before the main dataset is executed.

In the case of jasper studio, you wont have that capability because of not having that xml config file.

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