ValueList.ShowCheckItems

Syntax:

ShowCheckItems(<NotifyOnCloseDescription>, <Title>)

Parameters:

<NotifyOnCloseDescription> (required)

Type: NotifyDescription.
It contains a description of the procedure that will be called after the item selection dialog is closed with the following parameters:
  • <List> - if you click "OK", then ValueListthat had marking of its items completed; Undefined - if you click "Cancel";
  • <AdditionalParameters> - the value specified when the object is created NotifyDescription.

<Title> (optional)

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

Description:

Interactively marks or unmarks items in a list of values.

Availability:

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

Example:

Notification = New NotifyDescription("AfterItemSelection", ThisForm);
PriceTypesList.ShowCheckItems(Notification, "Price types to be deleted.");
//...

AtClient
Procedure 
AfterItemSelection(List, Parameters) Export
    If List = Undefined Then
        Message("Mark for deletion of price types is cancelled.");
    Else
        For Each Item from List Do
            If Item.Check Then
                Item.Value.GetObject().
                SetDeletionMark(True);
            EndIf
;
        EndDo
;
    EndIf
;
EndProcedure


    

1C:Enterprise Developer's Community