FVS Date Time Widget

  • Last update:May 12, 2023
  • Overview

    Application scenarios: If you have installed the FVS plugin, you can view this article to learn about functions related to FVS templates.

    Note: Mobile devices are not supported.

    Version

    Report Server Version

    Plugin Version

    Function Changes

    11.0.6

    1.8.0

    Visible on preview setting was cancelled. You can hide or display components in Widget Layer list.

    11.0.6

    1.5.0

    Added DateTime Widget.

    Function Introduction

    During template preview, you can select date and time, and other components will be linked through parameters. As is shown below:



    FVS日期時間控件-1.2.gif

    For component animation, see FVS Component Animation.

    For component styles, see FVS Component Basic Attributes. If you want to modify the widget name, set it on the Content tab page.

    Functions

    Widget Content

    What can be set in the date time widget is shown as follows:

    FVS日期時間控件-2.1-1.png

    For details, see the table below:

    Settings

    Details

    Name

    The widget name is the parameter name, and it is set as English by   default. The name needs modifying according to the actual parameter.

    Font Size

    The font size of the text in the widget defaults to 12 px

    Format

    There are four types of date and time formats. Each type supports   multiple display styles. You can also input date and time manually.

    FVS日期時間控件-2.1-2.png

    Default Value

    There are three types of default values you can choose to set date and   time.

    1. Custom Date Time: By   default, it takes the current date and time, and the displayed value is   consistent with the format type above.

    It can be deleted and re-selected, and also supports manual input.

     FVS日期時間控件-2.1-3.png

    2. Field: You can select   field in the dataset. If the return value is an array, only the first value   in the array will be displayed.

     FVS日期時間控件-2.1-4.png

    3. Formula: Click fx on the   right side to enter the formula. If the return value is an array, only the   first value in the array will be displayed

    FVS日期時間控件-2.1-5.png

    Return

    The format of the return value is divided into two types: Date and String, and generally need matching the type of the date field in   the database.

    Watermark

    The light gray watermark text displayed inside the widget during preview   will remind you what to input. It will disappear by default after clicking   the widget to enter text. The widget content is empty by default.

    Date Range

    You can set the start date and end date. The start date must be earlier   than the end date.

    After setting the date range, data outside the range will become gray   and cannot be selected.

    There are three types of settings:

    1. No Limit

    2. Custom: By default, it   takes the current date and time, and the displayed value is consistent with   the format type above. It can be deleted and re-selected

    3. Formula: Click fx on the   right side to enter the formula. If the return value is an array, only the   first value in the array will be displayed

    Permission

    It is used to decide whether the widget is editable when previewing. The   default option is editable.

    Validation

    Allow null: It will be ticked by default. If ticked, the   widget is allowed to be null. If not ticked, you can set calibrate prompt   text. And if the widget is empty during template preview, the prompt text   will be displayed.

    Widget Interaction Events

    Click Interaction > Add Event to add JavaScript events for more effects. The date time widget supports After Initialization and Edit Finish events. As is shown below:

    FVS日期時間控件-2.1-6.png

    The JavaScript event settings box will pop up if you click a specific event. As is shown below:

    Note: For JavaScript supported by FVS, see JS Interface Scenarios Supported by FVS Large Screen.

    FVS日期時間控件-2.1-7.png

    Examples

    Preparing the Template

    1. Click File > New FVS Report in the top left corner of the designer.

    3.1 1).png

    2. Create a database query ds1 and enter the following SQL query statement:

    SELECT * FROM ORDERS where 1=1

    ${if(len(starttime)=0,""," and SIGNDATE>='"+starttime+"'")}

    ${if(len(endtime)=0,""," and SHIPDATE<='"+endtime+"'")}

    Then you can retrieve the data from the order data table where the order date is within the range of starttime and endtime.

    As is shown below:

    FVS日期時間控件-3.1.png

    Adding Title Component

    Click Text > Title and add it to the page. In the right configuration panel, set the title content to Start Time, then copy another title and set the content to End Time. As is shown below:

    FVS日期時間控件-3.2.png

    Adding DateTime Widget

    Click Widget > DateTime and add it to the page.

    In the configuration panel on the right, set the widget name to starttime to match dataset parameter starttime. The default value of custom date time is 2011-05-22.

    Copy another DateTime widget, name it endtime, and match it with dataset parameter endtime. The default value of custom date time is 2011-06-22.

    As is shown below:

    FVS日期時間控件-3.3.png

    Adding Line Chart Component

    1. Click Chart > Line Chart, add it to the page, and add data to the line chart as shown in the figure below:

    FVS日期時間控件-3.4.png

    2. Select the line chart, click Content > Style > Axis, and set the type of X Axis to Time Axis.

    FVS日期時間控件-3.4-2.png

    Previewing the Effect

    Click Save in the upper right corner and click Preview. If you modify the start or end time, the line chart will display the corresponding data within the time range. As is shown in section “Function Introduction”.

    Template Download

    To download the template, click: Date Time Widget.fvs



     


    Attachment List


    Theme: FineVis Data Visualization
    • 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