panlj2004 Posted August 4, 2015 Share Posted August 4, 2015 I've created a reports where i want to input a Drop-Down parameter, it selected all records from a column as list,user can be click the Drop-Down to choose as you wanted, but I don’t how to add the parameter, some document said: some define should be made in JasperServer, but without the "Input Controls" in my JasperServer. anyone can tell me a way to create a drop down menu behavior inside the TIBCO Jaspersoft Studio-6.1.0.finalPlease help.Thank you in advanceKelly Link to comment Share on other sites More sharing options...
hozawa Posted August 4, 2015 Share Posted August 4, 2015 Input Control is supported in JasperReports Server. It's possible to create Input Control with drop down list from Jaspersoft Studio.Just go to "Repository" view and right click on the report folder and "New" -> "Input Control". In the 2nd page, select "Select from List" in the type drop down list. Link to comment Share on other sites More sharing options...
panlj2004 Posted August 4, 2015 Author Share Posted August 4, 2015 Hello hozawa,I found the "input control" in JasperReports Server, and the simple drop-down is working.now, I'm research the situation:when choice 1st drop-down, the 2nd drop-down will seleced related recorde.can you help me for this?thanks a lotKelly Link to comment Share on other sites More sharing options...
zh3ntil Posted August 4, 2015 Share Posted August 4, 2015 If you want to create a tree looking input control that's not possible without modifiyng jasperserver source codes I guess. But if a sql query flling your filter,It's simple to create cascading input controls.For example let's assume that we have two input control. First one is for "Product Class ID", and the second one is "product ID". -create two input control(Single Select Query) and two parameter. param1 (product_class_ID), param2 (product_ID) - First input control sql query is "select product_class_ID from product_table" - Second should be like " select product_ID from product_table where product_class_ID=$P{param1} "By doing that we achive to get product ID based on product_class_ID selection.That's what you want I guess :) Link to comment Share on other sites More sharing options...
H Mendoza Posted August 4, 2015 Share Posted August 4, 2015 Take a look at this article, http://community.jaspersoft.com/blog/cascading-parameters-jasper-reports-0. Link to comment Share on other sites More sharing options...
hozawa Posted August 4, 2015 Share Posted August 4, 2015 The page Hugo mentioned or the JasperReports Server User Guide:http://community.jaspersoft.com/documentation/jasperreports-server-user-guide/cascading-input-controls 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