Event Method Sequences when a Form is Opened

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 a form is opened. The specific sequence depends on the set of controls and data sources that are associated with the form.

Open a Form

In this example, the user opens a form that contains a grid control, which is bound to a data source.

The executed events are distributed across two threads. The timing of event method execution between threads can vary.

The following table shows the sequence that event methods are executed in when a user opens a form.

Method

Where

Thread number

new

Form

init

Form

1

loadUserSetting

Form

2

run

Form

1

init

Data source

2

executeQuery

Data source

2

leaveRecord

Data source

2

leave

Data source

2

leaveRecord

Data source

2

firstField

Form

2

firstField

Form

1

See also

Event Method Sequences in Form Scenarios

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.