RecordSet.removeAll

Availability

Usage

RecordSet.removeAll()

Parameters

None.

Return value

Nothing.

Description

Method. Removes all records from the record set. Do not use the removeAll method, when the RecordSet object is associated with an application server and not fully populated yet.

Error handling

Error condition
What happens
Error message
The RecordSet object is server-associated and not fully populated yet.
No change is made to the RecordSet object, and an error message is reported to the Flash MX output window and Debug Console.
Operation not allowed on partial RecordSet objects.

Example

The following example demonstrates the removeAll method:

#include "NetServices.as"
var productList =new RecordSet(["ProductName","Price","Color"]);
var itemToAdd ={ProductName:"magicbubbles",Price:1,Color:"0x987654"};
productList.addItem(itemToAdd);
productList.removeAll();

See also

Constructor for RecordSet, RecordSet.removeItemAt

 

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/asDict38.htm