Event Method Sequences in Form Scenarios
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
User actions on a form are input through mouse pointers and keyboards. These actions cause events that are recognized by Microsoft Dynamics AX. The recognized events include the following:
The system reacts to each event by executing several event methods. The user is often unaware that these methods are being executed.
Customize the Responses to User Events
Use the Application Object Tree (AOT) to override the event methods and customize the response to form events.
Expand the Forms node to see its Methods subnode.
Expand the Methods node to see a subnode for each method that is currently overridden.
Right-click the Methods node, and then select Override Method to see a list of methods that have not yet been overridden.
Expand other nodes under Forms to see additional Methods nodes.
Use Sequence Information to Determine the Correct Method to Override
Information about the sequence of event method execution is useful when you are determining the correct method to override. For example, you could write code to log the inserts that the user causes when they enter data into a grid control. This code could be placed in various event methods. You could override the insert event method on an underlying table. By knowing the aosValidateInsert method is executed immediately after the insert method, you might instead choose to log the aosValidateInsert method. Overriding aosValidateInsert might provide log information that has the results of security checks.
Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.