AxdServiceOrder.prepareForUpdate Method [AX 2012]

Prepares an AxBC class for update.

Syntax

public boolean prepareForUpdate(AxdStack _axBcStack, str _dataSourceName)

Run On

Server

Parameters

  • _dataSourceName
    Type: str
    The data source name.

Return Value

Type: boolean
true if the top element on the stack can be updated; otherwise, false.

Remarks

The prepareForupdate method returns a value of true. Derived classes can override 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 to use when the validateDocument method is called.

See Also

Reference

AxdServiceOrder Class