In this post, I will add the Override methods available to the table Airline. Tables in AX have 29 methods that can be overridden. Open the shared project Flight_Stats and expands the nodes Data Dictionary / Tables / Airline / Methods. Right-click on the node Methods and select Override Method. Then click on the first override method aosValidateDelete.

Inside the method aosValidateDelete, I added the line info(‘aosValidateDelete’); in order to study when this particular method is triggered.

Similarly, I added the below mentioned 29 override methods to the table Airline. These override methods are available on any given AX table:


toString method was throwing the error Super() not allowed here. Hence, that line had to be commented out. Also, added the lone semi colon to avoid the Syntax error.


wait method was throwing the error Super() not allowed here. Hence, that line had to be commented out. Also, added the lone semi colon to avoid the Syntax error.


Now that I have added these info statements, I am planning to study how these methods work using Table browser.
Inside the method aosValidateDelete, I added the line info(‘aosValidateDelete’); in order to study when this particular method is triggered.
Similarly, I added the below mentioned 29 override methods to the table Airline. These override methods are available on any given AX table:
- aosValidateDelete
- aosValidateInsert
- aosValidateRead
- aosValidateUpdate
- caption
- clear
- delete
- equal
- getPresenceFieldData
- helpField
- initValue
- initValue
- isFormDataSource
- merge
- modifiedField
- new
- postLoad
- renamePrimaryKey
- reread
- toolTipField
- toolTipRecord
- toString
- update
- validateDelete
- validateField
- validateWrite
- wait
- write
- xml
- I added the info statement to all the above methods similar to how I added it to the method aosValidateDelete. Except the following methods required some additional changes:
toString method was throwing the error Super() not allowed here. Hence, that line had to be commented out. Also, added the lone semi colon to avoid the Syntax error.
wait method was throwing the error Super() not allowed here. Hence, that line had to be commented out. Also, added the lone semi colon to avoid the Syntax error.
Now that I have added these info statements, I am planning to study how these methods work using Table browser.
No comments:
Post a Comment