API Only for Checkbox Widget

  • Last update:October 20, 2023
  • Version

    Version

    Functional Change

    11.0

    /

    11.0.6

    Added setCellsQuick and setCellsValueInBatch APIs.

    The following APIs can only be used in pagination reports, not in FVS templates.

    setCellsQuick

    Method

    setCellsQuick(configs)

    iconNote:
    You can use the method setCellsValueInBatch(configs) if some cells in templates are forzen and the function No Automatic Adjustment are uncheked for cells assigned with values.


    Batch assign values to checkbox widgets.

    Parameter

    configs: array

    {reportIndex:0,col:0,row:0,value:1}

    • configs: an array including sheet number, column number, row number, and values

    • sheet: sheet number of reports (starting from 0)

    • col: column number (starting form 0)

    • row: row number (starting form 0)

    • value: value to be selected or not true: selected. false: unselected.

    Return Value

    void

    Example

    Batch assign values to the checkbox widget on the reporting page.

    var configs = [];configs.push({reportIndex:0,col:0,row:0,value:1});_g().setCellsValueInBatch(configs);

    Application Example

    Select all options or select options in batch when you use multiple checkbox widgets.

    1.png

    Mobile Terminal

    It is not supported on mobile terminals.


    Attachment List


    Theme: Secondary Development
    • Helpful
    • Not helpful
    • Only read

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

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

    不再提示

    6s后關閉

    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