1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise Development Standards
  3. Designing user interfaces
  4. Implementation of list forms

Specifics of the commands implementation for list forms

  • Implementation of list forms
    • Restriction on using dynamic lists
    • Specifics of the commands implementation for list forms
    • Using common commands with data lists
    • Updating lists after interactive user actions
    • Reference attribute in dynamic lists
    • Queries in dynamic lists
    • "Date" field in the lists
    • Programmatically overriding dynamic list query texts

Scope: a managed application, a mobile application.

Best practices

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:

&AtClient
Procedure CommandInForm(Command)
 ObjectsArray = Elements.List.SelectedLines;
 If ObjectsArray.Count() = 1
  AND TypeOf(ObjectsArray [0]) <> <ExpectedType> Then
  Warning(NStr("en = "The command cannot be executed for this object"));
  Return;
 EndIf;
  For Each ObjectFromList From ObjectsArray Do
    If TypeOf(ObjectFromList) <> <ExpectedType> Then
      Continue;
    EndIf;

    // Line object processing.
    // ...
  EndDo;
EndProcedure

See also:

  • Updating lists upon interactive user operations
© 2020 1C INTERNATIONAL LLC www.1Ci.com Support policy