FormDataSource.cacheRemoveRecord Method
Removes the specified record from the underlying cache of the data source.
Syntax
public void cacheRemoveRecord([Common record])
Run On
Client
Parameters
- record
Type: Common Table
The record to remove from the cache; optional.
Remarks
You must enclose data modification statements in a ttsbegin/ttscommit block.
Examples
The following example deletes the inventTable record from the cache of the data source.
void updateCache(container _conItemId)
{
SetIterator itSetItemId;
InventTable inventTable;
Set setItemId = new Set(Types::String);
setItemId = Set::create(_conItemId);
itSetItemId = new SetIterator(setItemId);
ttsBegin;
while (itSetItemId.more())
{
inventTable = InventTable::find(itSetItemId.value());
if(inventTableWithOutReqItem_ds.
findRecord(inventTable))
inventTableWithOutReqItem_ds.
cacheRemoveRecord(inventTable);
itSetItemId.next();
}
ttsCommit;
}