JS-newbie Posted September 10, 2018 Share Posted September 10, 2018 I am trying to create a dropdown list in Jaspersoft studio. Is it possible? Thanks,Ritesh Patidar Link to comment Share on other sites More sharing options...
reportdev Posted September 10, 2018 Share Posted September 10, 2018 <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 More sharing options...
JS-newbie Posted September 11, 2018 Author Share Posted September 11, 2018 Thanks! But how can I make the paramter take the values of the data field from the table of my database instead of adding it in as One, Two and Three? Link to comment Share on other sites More sharing options...
reportdev Posted September 11, 2018 Share Posted September 11, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now