Jump to content
JasperReports Library 7.0 is now available ×

JasperReports supports Dropdown list or JComboBox?


RollinMao

Recommended Posts

Good day to all,

As I am researching how flexible this JasperReports can do reports in Java, I came across a query that I cannot find any answers over the net. I understand JasperReports is meant to generate reports that is ready-to-print format and it should be easy to change its format. However, I can do see some dynamic inputs that are created in the JasperReports like textfields and checkbox(with some customisation). My question is does JasperReports support dropdown list or JComboBox with the elements of the list from a database?

Thanks in advancing in replying this thread.

Regards

Yiming

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

 

At this moment the answer is no. As a ready-to-print format, having a value set at the top of an entire hidden list could only enormously increase the size of the generated document. Because report generation is done completely automatic, changing values manually in a combobox is meaningless.

You could either programatically generate a separate report for each element in your list, or preset the one desired value for your field in a textfield.

 

HTH,

sanda

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