AX7 / D3FO: Table extensions and their method sequence

You can create a table extension to extend a table's design and logic. You can add new fields, field groups, indexes, mappings and relations. You can also add new fields to existing field groups, change the label of a table field, change the Created By, Created Date Time, Modified By, Modified Date Time properties. In Microsoft Dynamics AX 2012, you could override the virtual methods of a table's base class to control the behavior that occurred during table operations, such as when creating, reading, updating, or deleting. In the current version, you instead use extensions to implement event handlers that are called from the base implementations of the table methods. The following table lists each table method and its events.

Published Table method
Preceding event
Succeeding event
validateWrite
ValidatingWrite
ValidatedWrite
validateDelete
ValidatingDelete
ValidatedDelete
validateField
ValidatingField
ValidatedField
validateFieldValue
ValidatingFieldValue
ValidatedFieldValue
modifiedField
ModifyingField
ModifiedField
modifiedFieldValue
ModifyingFieldValue
ModifiedFieldValue
Insert
Inserting
Inserted
Update
Updating
Updated
Delete
Deleting
Deleted
Initvalue
InitializingRecord
InitializedRecord
FinalDeleteValidation
Executed when a delete operation is performed on a table object, before the operation is committed to the underlying database table
N/A
FinalInsertValidation
Executed when an insert operation is performed on a table object, before the operation is committed to the underlying database table
N/A
FinalReadValidation
Executed when a read operation is performed on a table object.
N/A
FinalUpdateValidation
Executed when an update operation is performed on a table object, before the operation is committed to the underlying database table.
N/A

Validation events capture and return results by using the DataEventArgs parameter. The display and edit method modifiers are supported on table extensions.

7 comments:

  1. Thank you for all the knowledge you publish on your blogspot. I have recently contacted microsoft dynamics partner to introduce the software in my company, so I will need a lot of knowledge. Cheers!

    ReplyDelete
  2. Hello! great information this really useful article for microsoft dynamics learners really interesting keep it well going :)))))))))
    dynamics 365 for operations

    ReplyDelete
  3. Nice blogpost and thanks for sharing such useful information about Microsoft Dynamics. If you are looking for Microsoft Dynamics AX solution then you should visit atDynamics AX Partner Australia. DFSM Consulting has Microsoft Dynamics AX support, upgrade & implementation solutions for your business needs.


    ReplyDelete
  4. if ModifiedBy property changed in Standard table then we cannot change it in extension.

    ReplyDelete

Powered by Blogger.