Wednesday 8 September 2021

Access Form Controls In Form pre/post Event Handlers in Dynamics 365 for Operations (AX7)

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

  1. Form’s Method pre/post Event Handlers
  2. Form’s  Event Handlers
  3. Form’s DataSource Event Handlers
  4. Form’s Control Event Handlers
  5. 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. 




In Form’s Event Event Handlers





In Form’s DataSource Event Handlers





Form’s Control Event Handlers





In Class’s Method Event Handlers







5 comments:

  1. This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things. https://www.evernote.com/shard/s660/sh/8591cd4f-c719-d7ac-990d-881a87d71854/54398e447beb507d37ba06299ae5c776

    ReplyDelete
  2. I just want to let you know that I just check out your site and I find it very interesting and informative.. Esiintyjä yritystilaisuuteen

    ReplyDelete
  3. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. beautiful wishes

    ReplyDelete

Difference Between Edit And Display Method in Ax

Display Method: The display method means that the method’s return value is being displayed on a form or a report.  This value is fixed and c...