Tutorial Form MultiSelectCheckBox
A tutorial about MultiSelect options in Dynamics AX
Sometimes, simply selecting the lines you want in a datasource and pressing OK (or other button) is not enough for the users. They want to clearly see what they have selected, be able to easily modify the selecting, and to their liking whould be to see a checkbox on the left of the grid for each line. (For an example, see CustTransOpen form where you mark transaction with a checkbox)
Here is a simple tutorial form based on InventTable datasource. You can select multiple lines and process the lines by pressing Process lines button.
- Added 2 more Tabs - using Set(Types::Record) and InventTable.setTmp() - to see if the difference with StandardMultiSelect is smalled for these processing options
- Added a chechbox on the form to control whether the Infolog messages with Itemname are shown. (While testing on large amounts of Inventory, it's better not to show the ItemName due to performance issues)
- The selected records are cleared after processing - this is done to free the memory used up to hold all the selected lines. (it is performed automatically when the form is closed)
- Various tabs now allow selecting different processing options. Play around with them to choose the best method for yourself.
- A server based class performs the processing.
- Results are output into the infolog.
- 5 possible combinations are allowed. (Standard DAX MultiSelect, using SET, using a temporary TmpInventTable table)