Task Schedule Sample - Daily Report

  • Last update:  2020-11-10
  • I. Overview

    Report data can be exported daily. For example, users are able to export data generated from 0:00 to 23:59 for the day and save it as a file, or share it daily with others.

    You will learn
    • Example

    • View Results

    II. Example

    1. Template Example

    Take the database table "Inventory" as an example. We'll set up a task schedule on this table, and send daily reports of inventory changes to the Development department.

    1) Prepare a dataset

    Create a DB query "ds1" and set parameters for start and end time to filter today's data.
    SELECT [Date], Warehouse_entry, Discharge_from_warehouse FROM Inventory
    WHERE [date]>='${p_start_time}'
    AND [date]<='${p_end_time}'
    ORDER BY [date]

     1.png

    2) Add parameters

    Add parameters for start time ($p_start_time) and end time ($p_end_time) to the Parameter Pane. Set as text widgets.

    2.gif

    Click on the widgets and specify the start and end time of the day by Formula in Widget Value. Type in the following fomula for starttime Format(today(),"yyyy-MM-dd 00:00:00"), and Format(today(),"yyyy-MM-dd 23:59:59") for endtime.

    3.png

    3) Edit a report

    Drag and drop the data needed to the cell and set its style, then save the report.

    4.png


    2. Schedule a Task

    Go to Manage -> Task Schedule -> Add a Task on the platform. Please refer to Task Schedule Setting Steps for detailed instructions

    1) Basic setting

    Enter a task name. Choose Development for Default User Group -> Dept.

    5.png

    2) Dispatcher object

    Select the template.

    The default values of parameters are same as those in the report designer, with Type set to Formula. You can copy&paste the formulas here for convenience.

    p_start_time = Format(today(),"yyyy-MM-dd 00:00:00")

    p_end_time = Format(today(),"yyyy-MM-dd 23:59:59")

    Set the file name to ${today()} Inventory Flow Report

    6.png

    3) Schedule cycle

    Select Detailed Frequency Setting for Frequency and click Add. Set the Run Time to "15 Hour 0 Minute" and Execution Date to "Daily", and check "Select All" for Month. It is also suggested to configure the task restart frequency.

    7.png

    4) File process

    Click on Next and choose Mounting Platform, then set up the Mount Directory as well as its name.

    Note: please assign View permission of the directory to the corresponding user group first.

    8.png

    Other processing options, such as Platform Notification, can be checked as well. Click Save.

    9.png

    5) Check the run status

    10.png

    III. View Results

    Login the platform by account of Mike (Mike from Development), and a "Daily Inventory" section appears under the determined directory, once the task completed its first execution.

    11.png

    Notifications will be sent via the platform.

    12.png

    Also, files generated from Task Schedule can be found in the folder "WEB-INF/schedule".

    13.png 

     


    Attachment List


    Theme: Decision-making Platform
    • 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