ManagedForm.ShowChooseFromMenu

Syntax:

ShowChooseFromMenu(<NotifyDescriptionOnCompletion>, <ListOfValues>, <FormElement>)

Parameters:

<NotifyDescriptionOnCompletion> (required)

Type: NotifyDescription.
It contains description of the procedure that will be called after the date entry window is closed with the following parameters:
  • <SelectedElement> - the selected date value or Undefined if the user has not entered anything,
  • <AdditionalParameters> - the value specified when the object is created NotifyDescription.
<SelectedElement> - the selected date value or Undefined if the user has not entered anything,
<AdditionalParameters> - the value specified when the object is created NotifyDescription.

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

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 are displayed in the menu.

Example:

List = New ValueList;
List.Add("Delivery",,True);
List.Add("Unloading",,False);
List.Add("Picture",,,PictureLib.Picture1);
Notify = New NotifyDescription("AfterChoiceFromMenu", , Parameters);
ShowChooseFromMenu(Notify, List, Items.Button1);
//...

&AtClient
Procedure 
AfterChoiceFromMenu(ChooseItem, Parameters) Export
    // ...
EndProcedure;


    

1C:Enterprise Developer's Community