Search code examples
axaptadynamics-ax-2009

Allow multiple selection in a dialogue field


Is it possible to allow multiple selection in a dialogField, in the same way that report selection criteria fields work?

So for example, I have a dialogField which has extended type InventSiteId, each time I select an inventSiteId from the drop down I would like the lookup added to my dialogField, rather than replace it.


Solution

  • This can be done using the ReplaceOnLookup attribute which is available on StringEdit controls.

    DialogField dlgField = dialog.addField(...);
    FormStringControl fsc = dlgField.control();
    fsc.replaceOnLookup(false);