curLGP

  • Last update:  2020-12-23
  • I.Overview

    There will be a curLGP object in the contentPane under the report preview and decision report preview. It can be used to obtain information such as cells in the page.

    II.Reference CurLGP

    2.1 Reference in CPT

    The user can use contentPane.curLGP in CPT JS script to get the object


    2.2 Use Iframe to Embed Reports in Webpages

    If the report is embedded in the IFrame of the web page, the curLGP object obtained outside the IFrame is as follows:

    var curLGP = document.getElementById('reportFrame').contentWindow.contentPane.curLGP;

    III.CurLGP Common Attributes

    $container

    The jQuery object of the current page

    $sheet_container

    The jQuery object of the current sheet

    $editor

    The current editing object x-editor

    $fD

    The border object when the control is clicked

    $glance

    The border object when the mouse passes over the control

    $table

    Table object x-table

    currentTDCell

    Currently edited cell

    dirtyCell

    The edited cell array

    idx

    sheet number

    currentPageIndex

    The page number in the current sheet

    table_height

    Table height

    table_width

    Table width

    IV.curLGP Common Methods

    4.1 getCellValue(cell)

    DescriptionGet the actual value of the specified cell.
    Parameters
    • cell: String

      • The cell that the user gets the value from

    ReturnsDepend on the value type
    contentPane.curLGP.getCellValue("C2")


    4.2 getCellValue(col, row)

    DescriptionGet the actual value of the specified cell.
    Parameters
    • col: Number

      • The column of the cell, starting from 0

    • row: Number

      • The row of the cell, starting from 0

    ReturnsDepend on the value type
    contentPane.curLGP.getCellValue(2, 1)


    4.3 setCellValue(cell, null, value)

    DescriptionSet the actual value of the specified cell.
    Parameters
    • cell: String

      • The cell that needs to be set value

    • value: different type options

      • value to be set

    Returnsvoid
    contentPane.curLGP.setCellValue("C2", null, "test")


    4.4 setCellValue(col, row, value)

    DescriptionSet the actual value of the specified cell.
    Parameters
    • col: Number

      • The column of the cell, starting from 0

    • row: Number

      • The row of the cell, starting from 0

    • value: different type options

      • value to be set

    Returnsvoid
    contentPane.curLGP.setCellValue(2, 1, "test")


    4.5 _get$TDCell(cell).text()

    DescriptionGet the display value of the specified cell
    Parameters
    • cell: String

      • Cell that the user gets the value from

    ReturnsString


    4.6 _get$TDCell(col, row).text()

    DescriptionGet the display value of the specified cell
    Parameters
    • col: Number

      • The column of the cell, starting from 0

    • row: Number

      • The row of the cell, starting from 0

    ReturnsString


    4.7 getTDRow(cell)

    DescriptionGet the row number of the specified cell
    Parameters
    • cell: Object

      • Element of the cell

    ReturnsNumber
    contentPane.curLGP.getTDRow(contentPane.curLGP.currentTDCell) // get the row of the current cell


    4.8 getTDCol(cell)

    DescriptionGet the column number of the specified cell
    Parameters
    • cell: Object

      • Element of the cell

    ReturnsNumber
    contentPane.curLGP.getTDCol(contentPane.curLGP.currentTDCell) // get the column of the current cell


    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