ManagedForm.ChooseFromMenu

Syntax:

ChooseFromMenu(<ListOfValues>, <FormElement>)

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, 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.

Returned value:

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

Description:

Opens menu for selecting value. The values list assigns the set of selection values. Menu 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 tags or pictures are indicated in the list of values, then they also display in the menu.
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 ShowChooseFromMenu method instead.

Example:

List = New ValueList;
List.Add("Delivery",,True);
List.Add("Unloading",,False);
List.Add("Picture",,,PictureLib.Picture1);
Type = ChooseFromMenu(List, Items.Button1);


    

1C:Enterprise Developer's Community