ManagedForm.ChooseFromList
Syntax:
Parameters:
<ListOfValues> (required)
Value list containing values from which selection is made.
<FormElement> (optional)
Form element near which the dropdown list will be opened. For some elements, the dropdown list will be shown near the active area. If not specified, the active form element will be selected.
Note: Do not specify command bar or submenu buttons as values of this parameter.
<InitialValue> (optional)
Assigns initial element that will be active when the list opens.
If the parameter is not specified, no initial value will be selected on the list.
Returned value:
Value selected from the menu or Undefined, if the user has cancelled the selection.
Description:
Availability:
Note:
In a web-client, the selection is made from a list that opens in a new window.
If the configuration has the ModalityUseMode property set to DontUse use the ShowChooseFromList method instead.
Example:
List = New ValueList; List.Add("Delivery"); List.Add("Unloading"); List.Add("Picture",,,PictureLib.Picture1); Type = ChooseFromList(List, Items.Button1); |