User Guide

DataSet component (Flash Professional only) 313
Description
Method; returns true if the collection, or any item in the collection, has changes pending that
have not yet been sent in a delta packet; otherwise, returns
false.
Example
The following code enables a Save Changes button (not shown) if the DataSet collection, or any
items with that collection, have had modifications made to them that havent been committed to
a delta packet.
if(data_ds.changesPending()) {
saveChanges_btn.enabled = true;
}
DataSet.clear()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.clear()
Returns
Nothing.
Description
Method; removes the items in the current view of the collection. Which items are considered
viewable” depends on any current filter and range settings on the current iterator. Therefore,
calling this method might not clear all of the items in the collection. To clear all of the items in
the collection regardless of the current iterators view, use
DataSet.removeAll().
If
DataSet.logChanges is set to true when you invoke this method, “remove” entries are added
to
DataSet.deltaPacket for all items in the collection.
Example
This example removes all items from the current view of the DataSet collection. Because the
logChanges property is set to true, the removal of those items is logged.
myDataSet.logChanges= true;
myDataSet.clear();
See also
DataSet.deltaPacket
, DataSet.logChanges