RecordSet.setDeliveryMode(mode, pagesize, numPrefetchPages)
Method. Changes the delivery mode of a record set associated with an application server. At any time, a RecordSet object associated with an application server is operating in a particular data-delivery mode. The new mode setting takes effect immediately, except that pending application server requests are allowed to complete. You can change mode settings and delivery mode parameters.
Until you call this method for a RecordSet object, it operates in ondemand mode. When using fetchall mode, you can supply a pagesize parameter. The entire record set will be fetched from the application server in a series of requests, and each request will fetch only the number of records specified in the pagesize parameter.
When using page mode, you can supply the pagesize and preFetchPages parameters. In page mode, when you request a record using the getItemAt method, the RecordSet object ensures that numPrefetch pages after the page containing the requested record are either already available in the client or requested from the server. If numPrefetch pages is zero, only the current page containing the requested record is fetched.
When the RecordSet object is fully populated, the setDeliveryMode method has no effect.
The following examples demonstrate the setDeliveryMode method:
myRecordSet.setDeliveryMode("fetchall");
myRecordSet.setDeliveryMode("page", 25, 2);
RecordSet.getItemAt, RecordSet.isFullyPopulated
RSS feed | 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/asDict41.htm
Comments
FlashHack said on Jul 26, 2005 at 11:26 AM :