iReport: localized default values for parameters-Collection of common programming errors
How to use localized default values for parameters in iReport?
Using a $R{message.key} as the parameter default value has negative consequences in the “Read fields” functionality of iReport‘s SQL editor. More precisely, the following error is shown (after the pressing the Read fields button in Report query dialog):
Sourced file: inline evaluation of: ``$R{message.key}'' : Attempt to access property on undefined variable or class name
Any way around this iReport problem?
Here is the image that illustrate the problem:
-
I think this is a iReport‘s bug.
You can temporary comment the defaultValueExpression expression and add the fields via the Report query -> Read fields button.
Or you can manually add the fields declaration.