Scope: a managed application, a mobile application.
When you develop commands directly in dynamic list forms, make sure their logic enables users to group a dynamic list by one of its columns. If a command logic fails to support processing of selected lines in a grouping, they need to be skipped. We recommend that you display a message if only one grouping line is selected in the list:
ObjectsArray = Elements.List.SelectedLines;
If ObjectsArray.Count() = 1
AND TypeOf(ObjectsArray ) <> <ExpectedType> Then
Warning(NStr("en = "The command cannot be executed for this object"));
For Each ObjectFromList From ObjectsArray Do
If TypeOf(ObjectFromList) <> <ExpectedType> Then
// Line object processing.