2005 IR Help Posted August 25, 2006 Share Posted August 25, 2006 By: JeGr - jegr78 parameter, datasource problem 2004-03-23 06:16 Hi, 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? Thanks 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 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