I. Description
When a date widget is added to the report, the current date will be displayed by default, and some users do not want the date widget to display the default date. The effect is as follows:
II. Ideas
This can be achieved by modifying the type of the widget value.
III. Examples
1. Template settings
Open the report %FR_HOME%\webroot\WEB-INF\reportlets\GettingStarted.cpt , add a date widget in the parameter panel, you will find that the current date is displayed by default in the date widget, as shown below:
2. Widget value setting
1) Method one
Modify the widget value type to "Formula", and enter double quotes for the widget value, as follows:2) Method two
Modify the widget value type to "Field", only need to select the bound field, no need to select any field, as follows:
IV. Effect preview
Click Save and Preview, you can achieve the effect shown in the figure above.