FormDataSource.leaveRecord Method [AX 2012]

Provides notification when the focus moves to another record or item in the form.

public boolean leaveRecord([boolean forceUpdate])

Run On

Client

Parameters

forceUpdate
Type: boolean

Return Value

Type: boolean
true if the operation succeeds; otherwise, false.

The method might fail and return false if changes could not be validated or written.

It is recommended that you not override this method. Instead, override the FormDataSource.leave method.

If you do override the leaveRecord method, you must call the super method to make sure that the kernel implementation of the method is executed.

Community Additions

ADD
Show: