Delete method: RowsetCache class
Syntax
Delete()
Description
Use the Delete method to delete the RowsetCache from memory. The RowsetCache must have already been created, either using the CreateRowsetCache and saving the RowsetCache, or by a user using the application.
If this method is called as part of a larger transaction, such as in the SavePreChange or SavePostChange event, the commit is tied to the commit of the outer transaction. If an error occurs in this method, the outer transaction will be rolled back.
If this method is invoked in a non-transactional PeopleCode event (such as RowInit) the commit is controlled by the regular Component Processor flow.
Parameters
None.
Returns
A Boolean value: True if the delete was successful, False if the specified RowsetCache wasn't found.
This method terminates with an error message if there was another problem.
Example
Local RowsetCache &CRS;
Local Boolean &RSLT;
&CRS = GetRowsetCache(Rowset.MyRowset);
/* do processing*/
If (&CRS <> NULL) Then
&RSLT = &CRS.Delete();
End-If;