Jump to content
Changes to the Jaspersoft community edition download ×

I18N problem with JRTableModelDataSource


Recommended Posts

By: Alex - a_sc

I18N problem with JRTableModelDataSource

2006-03-23 01:59

Hello!

 

I have a problem generating a report based on a JRTableModelDataSource due to I18N. If I am correct, I have to define fields in iReport that correspond to the column names in my JTableModel in order to use a JRTableModelDataSource.

 

I.e.: for a TableModel like this:

private static final String[] COLUMN_NAMES = new String[]{"col1", "col2", "col3"};

DefaultTableModel tableModel = new DefaultTableModel(SOME_DATA, COLUMN_NAMES);

 

I have to declare $F{col1}, $F{col2} and $F{col3} in iReport.

 

The problem I have is that I can change the language settings in my application, thus having different column names depending on the language setting.

 

Is there a way around this problem?

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