Customizing Sales Confirmation

Hi,

Long time lurker, first time poster here.

I’m tasked to add a customized combo box when a user confirms a sales order in AX2012. and when user post the confirmation, the combo box selection needs to be persisted with the confirmation. I have so far managed the following:

  1. Added the combo box, along with the options to the SalesEditLine form.

  2. Added the necessary field to CustConfirmJour table.

I couldn’t for the life of me figure out how to link up the two, ie, how to pass the combobox selected value onto SaleParmTable, which inturn get saved to the CustConfirmJour during header creation.

any pointers will be much appreciated.

Thank you in advance.

If you don’t want to have different values for individual SalesParmTable records, simply create a new field in SalesParmUpdate table and bind the combo box into it. Both SalesParmUpdate and SalesParmTable are data sources of SalesEditLines form, so it should be very easy.

In either case, pass the value from the SalesParm* table to CustConfirmJour table in initJournalHeader() method of SalesConfirmJournalCreate class.