Hello all,
I have a question about the execution sequence of write() method on the form with multiple data sources.
For example, the standard InventTable form, it has five data sources: InventTable, Purch, Invent, Sales and InventItemLocation. Each data source can override the write() method. But what’s the executing sequence of these write() methods? I used the info() to test and figured out that the write() of InventTable is invoked last. I think maybe it is the Join source for all other data sources. I don’t know if this principle is applicable to every form in AX. I need your confirm.
Another question is, when user clicks the “Save” button on the toolbar, it begins a transaction for InventTable, Purch, Invent, Sales and InventItemLocation datasource to write data to the table. Is there anyway that I can be notified when this transaction is going to happen and when it is just committed?
Thanks very much!
Sunny Chen