iReport: localized default values for parameters

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


This is iReport bug ! To solve this issue please follow the below steps.

  • Open XML File
  • Remove defaultValueExpression tag value.
  • 在这里输入图像描述

    链接地址: http://www.djcxy.com/p/18696.html

    上一篇: 在ireport中为日期参数指定默认值的最佳方式是什么?

    下一篇: iReport:参数的本地化默认值