AxdReturnOrderIn.prepareForSave Method [AX 2012]
Prepares an AxBC class for saving.
Syntax
public boolean prepareForSave(AxdStack _axdStack, str _dataSourceName)
Run On
Server
Parameters
- _axdStack
Type: AxdStack Class
A stack of AxBC instances.
- _dataSourceName
Type: str
The data source name.
Return Value
Type: boolean
true if the top element on the stack can be saved; otherwise, false.
Remarks
The prepareForSave method returns a value of true. Derived classes can overload this method.
A derived document class can update data on the top node of the stack, or can replace the top node of the stack with a new AxInternalBase instance. Derived classes can also collect state data that will be used when the validateDocument method is called. Derived classes must set the partnerId and the partnerType.
This method is public instead of protected, because it is called from the delegate class AxdBaseCreate.