data property
- Last Updated: June 25, 2019
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
The data (field) and state values for a record associated
with a JSRecord object.
Data type: Object
Access: Read-only
Applies to: progress.data.JSRecord class
The returned object contains a field reference property (field-ref in syntax) for each field (column) in the table, where the property name is identical to a table field name and the property value for the corresponding JavaScript data type.
You can obtain a JSRecord object by invoking one of the JSDO methods that
returns record objects from a JSDO table reference (find( ),
findById( ), or foreach( )) or by accessing the
record property on a JSDO table reference that already has a working
record.
JSRecord object of the working
record and its data property are both implied by the table reference
alone.data property; in this
case, use field-refonly to read the data. Writing field
values using the data property does not mark the record for
update when calling the saveChanges( ) method, nor does it
re-sort the record in JSDO memory according to any order you have established using the
autoSort property. To mark a record for update and
automatically re-sort the record according to the autoSort
property, you must assign a field value either by setting a jsdo-ref.table-ref.field-ref for a working record or by calling the assign( ) method on a valid table-ref or
JSRecord object reference. For information on table
references (table-ref), see the reference entry for the
table reference property (JSDO).See also:
assign( ) method (JSDO class), autoSort property, find( ) method, findById( ) method, foreach( ) method, record property, table reference property (JSDO class)