TreeINFO-For-M365 documentation
    Preparing search index...
    const { myTable } = tisa.form.field
    const myRow = myTable.rows[0]

    console.log("Values of the first row are: ", myRow.values)
    interface IFieldAdvancedTableRow {
        id: number;
        index: number;
        values: Record<string, any>;
        cell(columnInternalName: string): IFieldAdvancedTableCell;
        delete(): void;
    }
    Index

    Properties

    Methods

    Properties

    id: number

    Gets row's id.

    console.log("Row's id: ${myRow.id}")
    
    index: number

    Gets row's index.

    console.log("Row's index: ${myRow.index}")
    
    values: Record<string, any>

    Gets or sets the row's cell values

    myRow.values = {...myRow.values, "department": "Finance"}
    

    Methods

    • Parameters

      • columnInternalName: string

        column identifier of the cell to be returned.

      Returns IFieldAdvancedTableCell

      row's cell based on columnInternalName

      const myCell = myRow.cell("department")
      myCell.value = "Finance"
    • Returns void

      console.log("Deleting table row.")
      myRow.delete()

      Deletes the row.