Jump to content
Changes to the Jaspersoft community edition download ×

parameter, datasource problem

2005 IR Help

Recommended Posts

By: JeGr - jegr78

parameter, datasource problem

2004-03-23 06:16


I've a problem with designing and filling a report using parameters and a datasource.

My main app returns a Hashtable with unique Strings as ID an a Vector as data. The Vector itself can contain any kind of Objects. The number of elements in the Hashtable and the number of elements in the Vector depends on user actions.

I looked at the datasource and the noxmldesign examples but I can't find a way to solve my problem for as in the given examples the datafields are already defined (which is not the case in my app).

Could someone please give me any hints?






By: David Lim - aberrant80

RE: parameter, datasource problem

2004-03-23 19:58

Are you saying that you won't know the names of the fields during report design? If so, then you might have a problem cos JasperReports doesn't work that way.


One way to handle this is to actually use placeholders as your field names. Then write a custom class to actually do the mapping between the placeholder field names and your actual field names; possibly modifying width and such along the way.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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