Adds a filter to the AGDBSet
object that removes any rows marked for deletion.
AGDBSet
void filterDeleteRecords(boolean filter);
None
dbset.filterDeleteRecords(filter)
void AVfilterDeletedRecords( dbset, PODSBooleanfilter );
dbset The AGDBSet
object.
filter Boolean that indicates whether the deleted records should be filtered.
None
This filter will work even with another filter that you may set using setFilter( )
. Calling this method will cause the filter loop to run again.
Assume you have a database on device where some records have been marked for deletion. The deletion will not actually be performed until the next synchronization, so you do not want these records to show up in any lists that the user displays. The following code suppresses the display of the records that have been flagged for deletion:
... var DBMgr = CreateObject('avantgo.db'); var DBName = "StressGets"; var DBSet = null; ... function openDB() { if(DBSet) DBSet.close(); DBSet = gDBMgr.open(DBName, "w"); DBset.filterDeletedRecords(true); }
Send feedback about this page using email. | Copyright © 2008, iAnywhere Solutions, Inc. |