ManagedForm.ChooseFromList

Syntax:

ChooseFromList(<ListOfValues>, <FormElement>, <InitialValue>)

Parameters:

<ListOfValues> (required)

Type: ValueList.
Value list containing values from which selection is made.

<FormElement> (optional)

Type: FormGroup; FormTable; FormField; FormButton.
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)

Type: Number; ValueListItem.
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:

Type: ValueListItem; Undefined.
Value selected from the menu or Undefined, if the user has cancelled the selection.

Description:

Opens dropdown list for selecting value. The values list assigns the set of selection values. Dropdown list will be positioned near the transferred form element or the active area near it.

Availability:

Thin client, web-client, thick client, Mobile application (client).

Note:

If pictures are indicated in the list of values, then they also display in the dropdown list.
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);


    

1C:Enterprise Developer's Community