The last example combines both methods that you learned. It includes selecting multiple items and picking them without closing the selection form, then selecting some more and picking them, and so on.
This requires passing both form parameters to a form being opened: CloseOnChoice and MiltipleChoice.
- Update the Pick button click handler as shown in listing 26.6.
Listing 26.6. Pick button click handler
&AtClient Procedure Pick(Command) FormParameters = New Structure ("CloseOnChoice, MultipleChoice", False, True); OpenForm("Catalog.MaterialsAndServices.ChoiceForm", FormParameters, Items.Materials); EndProcedure