Share via


AxdsmmBusRel.prepareForUpdateExtended Method [AX 2012]

Prepares an instance of the AxBC class to be updated.

Syntax

public boolean prepareForUpdateExtended(
    AxdStack _axBcStack, 
    str _dataSourceName, 
    AxdRecordProcessingContext _recordProcessingContext, 
    AxInternalBase _childRecord)

Run On

Server

Parameters

  • _dataSourceName
    Type: str
    The data source name.

Return Value

Type: boolean
true if the top element on the stack should be updated; 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 must be used when the validateDocument method is called. The prepareForUpdateExtended method is called immediately before saving the top node of the stack. This method is called if an existing record is being updated. The _recordProcessingContext parameter specifies when the top record of the stack is being processed with regard to the child records of that record.

See Also

Reference

AxdsmmBusRel Class