User Guide

DataSet component (Flash Professional only) 333
Example
This example uses DataSet.find() to search for an item in the current collection whose name
and
id fields contain the values "Bobby" and 105, respectively. If found, DataSet.getItemId()
is used to get the unique identifier for that item, and
DataSet.locateById() is used to position
the current iterator at that item.
var studentID:String = null;
studentData.addSort("id", ["name","id"]);
if(studentData.find(["Bobby", 105])) {
studentID = studentData.getItemId();
studentData.locateById(studentID);
}
See also
DataSet.applyUpdates()
, DataSet.find(), DataSet.getItemId()
DataSet.logChanges
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.logChanges
Description
Property; a Boolean value that specifies whether changes made to the data set, or its items, should
(
true) or should not (false) be recorded in DataSet.deltaPacket.
When this property is set to
true, operations performed at the collection level and item level are
logged. Collection-level changes include the addition and removal of items from the collection.
Item-level changes include property changes made to items and method calls made on items by
means of the DataSet component.
Example
The following example disables logging for the DataSet object named userData.
userData.logChanges = false;
See also
DataSet.deltaPacket