FormDataSource.cacheRemoveRecord Method [AX 2012]
Removes the specified record from the underlying cache of the data source.
public void cacheRemoveRecord([Common record])
Run On
ClientParameters
- record
- Type: Common Table
The record to remove from the cache; optional.
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;
}
Community Additions
ADD
Show: