The default value of the date widget is empty

  • Last update:  2021-10-08
  • 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.

    Attachment List


    Theme: Parameter
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy