ValueList.ShowChooseItem

Syntax:

ShowChooseItem(<NotifyOnCloseDescription>, <Title>, <Item>)

Parameters:

<NotifyOnCloseDescription> (required)

Type: NotifyDescription.
It contains description of the procedure that will be called after the item selection dialog is closed with the following parameters:
  • <SelectedElement> - if the user does not select anything, then Undefined,
  • <AdditionalParameters> - the value specified when the object is created NotifyDescription.

<Title> (optional)

Type: String.
The selection window title. If the parameter is omitted, the standard title is used.
Default value: Null string.

<Item> (optional)

Type: ValueListItem.
It specifies the item to position at in the beginning of interactive selection. If the parameter value is not in this list, no positioning will happen.

Description:

Opens a window for interactively selecting one of the elements in a list of values.

Availability:

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

Example:

Notification = New NotifyDescription("AfterItemSelection", ThisForm);
PriceTypesList.ShowChooseItem(Notification, "Select type of prices.");
//...

&AtClient
Procedure 
AfterItemSelection(ItemSelection, ListOfParameters) Export
    If ItemSelection = Undefined Then
        Message("Type of prices not selected.");
    Else
        SelectedValue = ItemSelection.Value;
    EndIf
;
EndProcedure


    

1C:Enterprise Developer's Community