Constructor
new DataRow()
- Copyright:
- ParaSQL LLC 2013-2022. All rights reserved.
- 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;
NOTE that this method also marks the row as existing (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:
markForDelete()
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.
setSelected(flag)
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.