The RecordSet object is for Flash Remoting MX use only.
The RecordSet object lets you manipulate record sets returned from Flash Remoting or create client-side record sets. A record set is a list of records, with methods for fetching, accessing, and manipulating the list of records in various ways.
Record sets created on an application server usually consist of database query results. Each record in a RecordSet object is represented by an untyped ActionScript object. In a RecordSet object, individual records are identified by an index number. The index starts at zero. When the record set is sorted or a record is added to or deleted from the record set, the index changes.
Each field of the record is represented by a field in the object. For a RecordSet object that originated from an application server, the field names are the same as the names of the fields as defined by the server-side record set. For local RecordSet objects, the field names are as defined in the original call to the new RecordSet() function.
To use the RecordSet object, you must use the include command to import the NetServices ActionScript class file, which also includes the RecordSet ActionScript class, in the first frame of a Flash application, as follows:
#include "NetServices.as"
| Method |
Description |
|---|---|
| Constructor for RecordSet |
Creates a new local RecordSet object. |
| RecordSet.addItem |
Inserts a record into the RecordSet object. |
| RecordSet.addItemAt |
Inserts a record into the RecordSet object at the specified index. |
| RecordSet.addView |
Defines an object that will receive notifications when the RecordSet object changes. |
| RecordSet.filter |
Creates a new RecordSet object that contains selected records from the original RecordSet object. |
| RecordSet.getColumnNames |
Returns the names of all the columns of a RecordSet object. |
| RecordSet.getItemAt |
Returns a record if the index is valid and the record is immediately available. |
| RecordSet.getItemID |
Returns the record ID. |
| RecordSet.getLength |
Returns the number of records in a RecordSet object. |
| RecordSet.getNumberAvailable |
Returns the number of records that have been downloaded from the server. |
| RecordSet.isFullyPopulated |
Determines whether a RecordSet object is fully populated or not. |
| RecordSet.isLocal |
Determines whether a RecordSet object is available locally. Functionally equivalent to the isFullyPopulated method. |
| RecordSet.removeAll |
Removes all records from the RecordSet object. |
| RecordSet.removeItemAt |
Removes the specified record from the RecordSet object. |
| RecordSet.replaceItemAt |
Replaces a record at the specified index. |
| RecordSet.setDeliveryMode |
Changes the delivery mode of a record set from an application server. |
| RecordSet.setField |
Replaces one field of a record with a new value. |
| RecordSet.sort |
Sorts all the records by a user-specified compare function. |
| RecordSet.sortItemsBy |
Sorts all records in the RecordSet object without making a new copy. |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/asDict25.htm