This blog will explain all possible ways where form control can be accessed in form using event handlers at different form levels. Events on a form are available at the form level, form control level and on the datasources level in Dynamics 365 for Operations (AX7).
We will access the form control in following
- Form’s Method pre/post Event Handlers
- Form’s Event Handlers
- Form’s DataSource Event Handlers
- Form’s Control Event Handlers
- Class’s Method Event Handlers
Form Control Access in Form’s Method pre/post Event Handlers
For example, we are using the CustTable form. and using the init method pre-event handler. we are going to access the CustTable_name control in the event handler. Both pre post event contail XppPrePostArgs class parameter. This will provides information about arguments and return values for event handlers.




