Event Method Sequences when Focus is Removed from a Record [AX 2012]
Updated: October 10, 2008
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
An event method sequence is executed when focus is removed from a record. The sequence includes the leaveRecord method. Form controls that simultaneously display multiple records have the leaveRecord event method.
This scenario has a form that contains a grid control, which is bound to a data source. The form is open, and the grid is populated with data. Focus is on the first line of the grid.
Move Focus from one Record to Another
Without changing any data, the user clicks a different grid line to move focus to that line. The following event method sequence is executed when data in the first line is unchanged.
-
leave on the data source.
-
leaveRecord on the data source.
A longer event method sequence occurs when grid line data changes before focus is moved from that grid line.
-
modifiedField on the table.
-
update on the table.
-
aosValidateUpdate on the table.
-
leaveRecord on the data source.
-
leave on the data source.
-
leaveRecord on the data source.
Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.