JSDO properties, methods, and events reference : data property
  

data property

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.
Note: If a given JSDO table has a working record, you can access each field-ref of the working record directly on the corresponding table reference property (table-ref) of the JSDO. For the working record of a table reference, then, references to the JSRecord object of the working record and its data property are both implied by the table reference alone.
Caution: Never write directly to a to a field-ref using this 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), assign( ) method (UIHelper class), autoSort property, find( ) method, findById( ) method, foreach( ) method, record property, table reference property (JSDO class)