Form.ChooseFromList

Syntax:

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

Parameters:

<ListOfValues> (required)

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

<FormElement> (optional)

Form element near which the dropdown list will be opened. For some elements (spreadsheet document, table box), 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.
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:

Thick client.

Note:

If pictures are indicated in the list of values, then they also display in the dropdown list.

Example:

List = New ValueList;
List.Add("Delivery");
List.Add("Unloading");
List.Add("Picture",,,PictureLib.Picture1);
Type = ChooseFromList(List, Item);


    

1C:Enterprise Developer's Community