Building a selected/available list
Frequent users might notice that some of the Dynamics AX forms contain two sections placed next to each other and allow moving items from one side to the other. Normally, the right section contains a list of possible values and the left one contains a list of the already selected values. Buttons in the middle allow data to be moved from one side to another. Double-click and drag-and-drop mouse events are also supported. Such a design improves the user experience as data manipulation becomes more user-friendly. Some of the examples in the standard application are General ledger | Setup | Financial dimensions | Financial dimension sets or System administration | Common | Users | User groups.
This functionality is based on the SysListPanelRelationTable
application class. Developers only need to create its instance with the required parameters on the form where the list is required, and the rest is done automatically.
This recipe will show the basic principle...