ValueList.ChooseItem

Syntax:

ChooseItem(<Title>, <Item>)

Parameters:

<Title> (optional)

Type: String.
Choice window header. If this parameter is not specified a standard header is used.
Default value: Empty string.

<Item> (optional)

Type: ValueListItem.
An item to which a list of values should be initially positioned during the interactive choice. If a parameter value is not a value list item included in this list, positioning cannot be executed.

Returned value:

Type: ValueListItem; Undefined.
If the user cancels selection, the Undefined value is returned.

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

Note:

If the configuration has the ModalityUseMode property set to DontUse use the ShowChooseItem method instead.

Example:

ItemSelection = PriceTypesList.FindByValue(SelValue);
ItemSelection = PriceTypesList.ChooseItem("Select type of prices.", ItemSelection);
If 
ItemSelection = Undefined Then 
    Message("Type of prices not selected.");
Else
    SelValue = ItemSelection.Value;
EndIf
;


    

1C:Enterprise Developer's Community