Getting information about a RecordSet object
To get information about a RecordSet object, use the following methods:
Method
RecordSet.contains()
RecordSet.getColumnNames()
RecordSet.getItemID()
RecordSet.getIterator()
RecordSet.getLength()
RecordSet.getLocalLength()
RecordSet.getNumberAvailable()
RecordSet.getRemoteLength()
RecordSet.isEmpty()
RecordSet.isFullyPopulated()
RecordSet.isLocal()
In the following example,
// Get an array of the column names and convert it to a comma delimited list
columns = theRecordSet.columnNames.join();
// The total number of records in the RecordSet
recordcount = theRecordSet.length;
// The number of records that are currently available to the Flash client
recordsavail = theRecordSet.getNumberAvailable();
// Have all the records been returned? (Only true if recordcount ==
// recordsavail)
allthere = theRecordSet.isFullyPopulated();
Changing record set data
After you download all records into the RecordSet object or create a new
ActionScript, you can use the
update, and remove records. Changes to the RecordSet object in the Flash application are not
propagated back to the application server. To insert, update, or remove records in a database, you
must call application server methods or pages using service functions.
Description
Indicates whether the record set contains the specified record.
Returns an array of the names of the columns of a RecordSet
object.
Returns the record ID used internally by Flash Remoting to
identify the record.
Returns a new iterator for the record set. For more information
see Collections in Flash.
Deprecated. Returns the number of records in a RecordSet
object.
Returns the number of records downloaded, or currently
available locally. In
length of the remote record set.
Returns the number of records that have been downloaded
from the server.
Returns the number of records in the RecordSet on the server.
Determines whether a
Returns true if the RecordSet object was created locally using
the New operator or if the record set was returned by a Flash
Remoting service function and all the data in the record set has
been returned from the server.
A RecordSet object must be fully populated before you can
change its contents or use the
These two methods are currently equivalent.
represents a RecordSet object:
theRecordSet
ActionScript class data-editing methods to insert,
RecordSet
mode this value is equal to the
fetchAll
object is empty.
RecordSet
.
RecordSet
filter()
RecordSet
About working with RecordSet objects
method.
object in
77
Need help?
Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?