Exclusive API for Email Button

  • Last update:April 11, 2025
  • Version

    VersionFunctional Change

    11.0

    Difference from V10.0:

    Added the changeFormat API.

    iconNote:
    The following API cannot be used in the FVS visualization dashboard.

    Before API use, read JS API Compatibility Description carefully. APIs are supported in both general reports and dashboards (new version) by default.

    changeFormat

    iconNote:
    The email button is not supported in dashboards. Therefore, you cannot use the following API in dashboards.

    API

    changeFormat(items)

    To modify the format options supported in the email button.

    Parameter

    items:newFormats[]

    The formats supported after modification, which are provided in a string array.

    Returned Value

    void

    Example

    Example 1: You can modify the format supported in the email button to PDF when the obtained toolbar email button object is defined as button.

    button.changeFormat(['pdf']);

    Example 2: In a general report, you can modify the format supported in the email button to PDF only.

    _g().getToolbar().getWidgetByName("email").changeFormat(['pdf']);

    Example 3: In a general report, you can modify the formats supported in the email button to PDF and Word.

    _g().getToolbar().getWidgetByName("email").changeFormat(['pdf','Word']);

    Application Example

    Example 4:  You can modify the format supported in the email button to PDF only.

    For details, you can download the template Modifying Format for Email Button.cpt.

    image.png

    Mobile Terminal

    This API is not supported on mobile terminals.


    Attachment List


    Theme: Secondary Development
    • 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