new DataRow()
DataRow class.
- Copyright:
- ParaSQL LLC 2013-2017. All rights reserved.
Examples
var myString = myDataRow.getValueAt(3).getString(); // get the string in the 4th column
myDataRow.getValueAt(1).setString('Dog'); // set the string in the 2nd column
Extends
- Object
Methods
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.