ManagedForm.ShowChooseFromList

Syntax:

ShowChooseFromList(<NotifyOnCloseDescription>, <ValueList>, <FormElement>, <>)

Parameters:

<NotifyOnCloseDescription> (required)

Type: NotifyDescription.
It contains description of the procedure that will be called after selection from the list is completed with the following parameters:
  • <SelectedElement> - the selected list item or Undefined if the user has not selected anything;
  • <AdditionalParameters> - the value specified when the object is created NotifyDescription.

<ValueList> (required)

Type: ValueList.
The set of values to select from.

<FormElement> (optional)

Type: FormGroup; FormTable; FormField; FormButton.
A form item that will have a drop-down list opened in proximity. For some form items the drop-down list will be displayed near the active area.
If not specified, an active form item will be selected.
Note: You cannot specify buttons from the command panel or submenu for this parameter.

<> (optional)

Type: Number; ValueListItem.
Assigns the initial element that will be active when the list opens.
If the parameter is omitted, no initial value will be selected in the list.

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

Example:

List = New ValueList;
List.Add("Delivery");
List.Add("Unloading");
List.Add("Picture",,,PictureLib.Picture1);
Descr = New NotifyDescription("DoAfterChoose", ThisObject, Parameter);
ShowChooseFromList(Descr, List, Items.Button1);


    

1C:Enterprise Developer's Community