Jump to content
Changes to the Jaspersoft community edition download ×

JRtableModelDataSource cant access Fields

2005 IR Help

Recommended Posts

By: elmato - elmato

JRtableModelDataSource cant access Fields

2005-05-10 16:11

sorry to bother you with boring beginner questions but i really don't get it. i try to use the TableModelDatasource with iReport and i found elsewhere in the forum that you can access the field values with $F{COLUMN_1} etc. but that unfortunatly doesn't work i always get a Field not found exception in iReport i produced some simple code like

public class test{

public static JRTableModelDataSource getTableSource(){

m = new DefaultTableModel(2, 2);

m.setValueAt("test", 0,0);

src = new JRTableModelDataSource(m);

return src;



the connection is working and i set also the active connection, just don't get any values, what am i doing wrong? I use iReport 0.4.1

thank you very much for your time and effort

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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