Mobile JS API

  • Last update:December 13, 2024
  • JS API That Can Be Called on the Mobile Terminal

    APP

    1. Web Event

    Web EventPagination PreviewData Entry Preview

    Loading Start

    Loading End

    Before Data Entry


    After Data Entry


    Data Entry Successful


    Data Entry Failed


    2. Internal JS API of the Report

    Internal JS API of the ReportCellChart

    Hyperlink JS API

    Note: The internal JS APIs of the chart can realize hyperlinks; however, when the chart is used as a component of a dashboard, the JS click events added to this component are not supported.

    3. Widget Event

    Widget EventParameter WidgetData Entry WidgetDashboard Widget

    After Initialization

    Before Editing




    After Editing


    Edit End


    Click

    Value Change




    Node Generation




    State Change

    After Uploading




    Note: 1. The widgets of the dashboard refer to the widgets in the body of the dashboard, which does not include those on the parameter panel.

    2. The mobile terminal only supports the initialization of widgets on the parameter page, but does not support the initialization of the parameter panel.

    3. Currently, the component does not support the click event.

    4. The label widgets on the mobile terminal do not support events.

    H5

    1. Web Event

    Web EventPagination Preview

    Loading Start

    Loading End

    2. Widget Event

    Widget EventParameter WidgetDashboard Widget

    After Initialization

    Before Editing



    After Editing


    Edit End


    Click

    Value Change



    Node Generation



    State Change

    After Uploading



    Note: 1. The widgets of the dashboard refer to the widgets in the body of the dashboard, which does not include those on the parameter panel.

    2. The mobile terminal only supports the initialization of widgets on the parameter page, but does not support the initialization of the parameter panel.

    3. The component does not support the click event.

    4. The label widgets on the mobile terminal do not support events.

    JS API Unique to the Mobile Terminal

    Shared JS API of the DataAnalyst App and the H5 Terminal

    Classification

    Method Name/Attribute

    Introduction

    FS

    FS.tabPane.closeActiveTab

    This API is used to close the current page and jump to the directory page.

    FR.logoutApp

    This API is used to log out the APP.

    FS.tabPane.addItem

    This API is used to open a new page.

    FR

    FR.location

    This API is used to obtain the longitude and latitude of a position.

    FR.mobilePopup

    This API is used to open a pop-up dialog.

    FR.closeMobilePopup

    This API is used to close a pop-up dialog.

    /

    toggleCollapsed

    This API is used to set the expansion/collapse component.

    /

    _g().jumpToMark("markName")

    This API is used to jump to specified locations by using hyperlinks.

    Note: markName can be the name of a widget, table component, chart block, or Tab-tabpane.

    /

    this.focusCode();

    This API is used to place the cursor automatically on the text widget.

    JS API Unique to the DataAnalyst APP

    Method Name/Attribute
    Introduction

    FR.Mobile.getDeviceInfo

    This API is used to obtain device information.

    The DtaAnalyst APP 11.0.91 and later versions with the FVS plugin of V2.6.0 and later versions support the following APIs, which are only available on the App.

    Method Name/Attribute

    Introduction

    FS.tabPane.closeActiveTab

    This API is used to close the current page and jump to the directory page.

    FS.tabPane.addItem

    This API is used to open a new page.

    duchamp.logoutApp

    This API is used to log out the APP.

    duchamp.location

    This API is used to obtain the longitude and latitude of a position.

    duchamp.getDeviceInfo

    This API is used to obtain device information.

    Other Mobile APIs

    For details, see JS API Summary.

    Attachment List


    Theme: Fine Mobile
    Already the First
    Already the Last
    • 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