The record object represents an individual record of a data table. The record object provides a convenient way of manipulating and displaying records in .view files and .data files.
The record Object in .view Files
In a .view file which contains a data region, the properties of the record object correspond to the fields displayed by the data region and the values of those properties correspond to the values of the current record displayed by the data region. For example, in a .view file with a data region bound to the AddressBook data table, the record object will have the properties record.FirstName, record.LastName, record.Email, etc.; the values of these properties will depend on which record is currently displayed by the data region. (Note that the properties of the previous object are determined by the ws:field tags present in the .view file, not by the fields of the data table bound to the view.)
Use DataWeb Substitution Syntax to display the values of the record object within a .view file.
The record Object in .data Files
You can use the record object to validate or manipulate data before changes are made to a data table. For a detailed discussion see Working with Data Classes.
Related Topics
previous Object, How To: Display the value of a foreign field in view script