Search code examples
internationalizationjasper-reports

Jasper/iReport internationalization with code from datasource


My question is quite simple. In a jasper report, the internationalization code for a field comes from the datasource.

ex: $F{field1} - contains my code.

I want to write something like $R{$F{field1}} but I get errors and it doesn't even compile.

Is there any way to work around this?


Solution

  • The answer is quite simple.

    Use: str($F{field1}).