AxdBase.prepareForDelete Method [AX 2012]
Prepares an AxBC class to be deleted.
Syntax
public boolean prepareForDelete(AxdStack _axBcStack, str _dataSourceName)
Run On
Server
Parameters
- _axBcStack
Type: AxdStack Class
A stack of instances of the AxBC class.
- _dataSourceName
Type: str
The data source name.
Return Value
Type: boolean
true if the top element on the stack should be deleted; otherwise, false.
Remarks
Derived classes can override this method.
The prepareForDelete method should be overloaded when additional checks must be performed before a record in a document is deleted. The default implementation calls the validateDelete method on the current record.