Partilhar via


FormDataSource.cacheRemoveRecord Method

Definition

Overloads

cacheRemoveRecord()

Removes the specified record from the underlying cache of the data source.

cacheRemoveRecord(Common)

cacheRemoveRecord()

Removes the specified record from the underlying cache of the data source.

public:
 virtual void cacheRemoveRecord();
public virtual void cacheRemoveRecord ();
abstract member cacheRemoveRecord : unit -> unit
override this.cacheRemoveRecord : unit -> unit
Public Overridable Sub cacheRemoveRecord ()

Remarks

You must enclose data modification statements in a ttsbegin/ttscommit block.

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; 
}

Applies to

cacheRemoveRecord(Common)

public:
 virtual void cacheRemoveRecord(Microsoft::Dynamics::Ax::Xpp::Common ^ _record);
public virtual void cacheRemoveRecord (Microsoft.Dynamics.Ax.Xpp.Common _record);
abstract member cacheRemoveRecord : Microsoft.Dynamics.Ax.Xpp.Common -> unit
override this.cacheRemoveRecord : Microsoft.Dynamics.Ax.Xpp.Common -> unit
Public Overridable Sub cacheRemoveRecord (_record As Common)

Parameters

_record
Common

The record to remove from the cache; optional.

Applies to