
Hello, and thanks for taking your time to read this.
I am looking to make a specific modification, and could use some feedback from technical gurus. During picking list creation, a client would like a new quantity option:
The base enum that backs this combo box is SalesUpdate:
Find references shows 529 uses in code, ranging from a wide variety of classes. I'm still trying to work out which of these are actually relevant, and I'm worried that extending the enum might cause problems in some of the other areas. Regardless, I am able to get a new option to appear simply by extending the enum (now it shows everywhere). I only need the new option on picking list posting for sales orders and transfer orders and would like to leave everything else unchanged, but I'm having trouble understanding how D365 is really using this enum.
When the selection is changed on the form, the lines in the "Lines" tab get updated, but this does not select any records for the new enum value. I would like to write some extension logic to select the lines based on the enum value, but I can't find where this is happening in code. Here is what I have so far:
For sales order, SalesEditLines is the form, and specQty is the quantity form control. This pulls data out of the SalesParmUpdate table (which is part of the Formletter framework). There is
I also found through debugging that when the selection is changed on the form, the SalesFormletterParmData method parmParmUpdate is called three times, after which the SalesEditLines method updateDesign is called, seemingly to "refresh" the form. I suspect the lines data source is getting updated somewhere, but I can't seem to find it in the SalesEditLines form, SalesEditLinesForm class, or formletter framework classes.
For transfer orders, InventTransferParmPick is the form, and InventTransferParmTable_pickUpdateQty is the form control. This pulls data out of InventTransferParmTable. I have yet to debug through this area.
Thanks in advance for any suggestions. I will post new things I learn here, and although this is all base functionality, I'm happy to answer any questions that might provide extra clarity. I have also attached the white paper for the formletter framework, which might be helpful for correspondence.[View:/cfs-file/__key/communityserver-discussions-components-files/765/3036.Using_5F00_the_5F00_refactored_5F00_Formletter_5F00_framework_5F00_AX2012.pdf]