AxdCatImp.prepareForSave Method [AX 2012]
Prepares an AxBC class to be saved.
Syntax
public boolean prepareForSave(AxdStack _axdStack, str _dataSourceName)
Run On
Server
Parameters
- _axdStack
Type: AxdStack Class
- _dataSourceName
Type: str
The data source name.
Return Value
Type: boolean
true if the top element on the stack should be saved; otherwise, false.
Remarks
Derived classes can override this method.A derived document class can update data on the top node of the stack or replace it with a new instance of the AxInternalBase class.Derived classes can also collect state data that will be used when the validateDocument method is called.The prepareForSave method is called immediately before saving the top node of the stack.This method is called if a new record is being created.