Thursday 6 October 2016

Connecting Dynamics AX to a Specific AOS Instance

When working in a Dynamics AX environment with multiple AOS instances there are times when you want to connect an AX client to a specific AOS for troubleshooting and/or testing purposes.   To bypass any load balancing create a client configuration file set up to connect to a specific AOS instance using a configuration command setting.
  1. Create a new AX Client Configuration file using the Microsoft Dynamics AX Configuration Utility.
  2. In the “Configuration command to run at kernel startup” field enter the following command
    1. -internal -loadbalance=0
  3. Save the file.
  4. Launch Dynamics AX using this new file.
When using this configuration file to launch Dynamics AX it will connect to the AOS instance that you have configured under the Connection tab and bypass any AX load balancing that is set up.

AX Configuration Utility

Wednesday 10 February 2016

Sequence of methods in form and table in AX

Form:
Sequence of Methods calls while opening the Form
Form — init ()
Form — Datasource — init ()
Form — run ()
Form — Datasource — execute Query ()
Form — Datasource — active ()
Sequence of Methods calls while closing the Form
Form — canClose ()
Form — close ()
Sequence of Methods calls while creating the record in the Form
Form — Datasource — create ()
Form — Datasource — initValue ()
Table — initValue ()
Form — Datasource — active ()
Sequence of Method calls while saving the record in the Form
Form — Datasource — ValidateWrite ()
Table — ValidateWrite ()
Form — Datasource — write ()
Table — insert ()
Sequence of Method calls while deleting the record in the Form
Form — Datasource — validatedelete ()
Table — validatedelete ()
Table — delete ()
Form — Datasource — active ()
Sequence of Methods calls while modifying the fields in the Form
Table — validateField ()
Table — modifiedField ()

Table:
When you press CTR+N
initValue()->

When you change data in a field
validateField() -> validateFieldValue() -> ModifiedField() -> ModifiedFieldValue()

When you close the table after entering some data
validateWrite() – > Insert() -> aosValidateInsert()

When you Save the Record for the first time
validateWrite() ->Insert() – > aosValidateInsert()

When you modify the record and saving
validateWrite() -> update() – > aosValidateUpdate()

When you delete the record
validateDelete() -> delete() -> aosValidateDelete()