2004 IR Help Posted August 30, 2006 Share Posted August 30, 2006 By: Darren Hartford - binarymonk How to register fields of an array of data? 2004-01-05 12:23 Hey all, I have a small array of data, 3 rows by 8 columns. I can have the data be an array of objects, or a javax.swing.table.DefaultTableModel. But, in either case, there does not seem a way to 'register' the fields so I can access the data for design. Any ideas please? I'm trying to avoid creating a custom javabean just to register the fields for this once-occuring dataset. -D By: Giulio Toffoli - gt78 RE: How to register fields of an array of data? 2004-01-15 09:19 the "name" of the field is JRDataSource dependent. In most cases is not possible register fields automagically, you have to add fields by hand from fields window. Giulio By: Darren Hartford - binarymonk RE: How to register fields of an array of data? 2004-01-19 06:53 Ah, thanks Giulio, that was the case. I wasn't sure how to NAME them in the dependent JRDataSource to map to the field. I ended up taking the array and put it into a javax.swing.table.DefaultTableModel with the (Object[] columnnames, int rows) constructor to NAME the columns for use in iReport. -D 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