Hi.
It's little complicated in an asynchronous mode.
Here is an example:
| Code |
|---|
&AtClient
Procedure ListBeforeDeleteRow(Item, Cancel)
Cancel = True;
ShowQueryBox(New NotifyDescription("ListBeforeDeleteRowEnd", ThisObject), NStr("en = 'Delete row?'"), QuestionDialogMode.YesNo);
EndProcedure
&AtClient
Procedure ListBeforeDeleteRowEnd(QuestionResult, AdditionalParameters) Export
If QuestionResult = DialogReturnCode.Yes Then
Row = Object.List.FindByID(Items.List.CurrentRow);
Object.List.Delete(Row)
EndIf;
EndProcedure |