DataRow

parasql.schema. DataRow

The DataRow class is a container for DataValue objects.

Constructor

new DataRow()

License:
Examples
// get the string in the 4th column
let myString = myDataRow.getValueAt(3).getString();
// set the string in the 2nd column
myDataRow.getValueAt(1).setString('Dog');

Extends

  • Object

Methods

discardChanges()

Tells each DataValue in this Row to discardChanges, and also marks this row as NOT new and NOT deleted.

Description:
  • Tells each DataValue in this Row to discardChanges, and also marks this row as NOT new and NOT deleted.

Since:
  • v128

getIsDeleted() → {boolean}

Returns:

True if this row is tagged for deletion during the next save operation.

Type
boolean

getIsNew() → {boolean}

Returns:

True if this row has not yet been saved to the database.

Type
boolean

getIsSelected() → {boolean}

Returns:

True if Allow Multiselect is enabled for a widget and the row has been selected (checked) by the user.

Type
boolean

getValueAt(index) → {parasql.schema.DataValue}

Parameters:
Name Type Description
index number

The first column is 0.

Returns:
Type
parasql.schema.DataValue

markForDelete()

Marks this row for deletion on the next save operation.

Description:
  • Marks this row for deletion on the next save operation.

resetChangeTracker()

Resets this row to be not new, not deleted, and modifies all of its values to unchanged.

Description:
  • Resets this row to be not new, not deleted, and modifies all of its values to unchanged.

setSelected(flag)

Certain UI objects may use this information to determine how they render.

Description:
  • Certain UI objects may use this information to determine how they render.

Parameters:
Name Type Description
flag boolean

Marks this row as selected or not.

toggleSelected()

Toggles the selected status of this row.

Description:
  • Toggles the selected status of this row.