Main > Knowledge Base > Knowledge Base > Knowledge base > Practical developer guide 8.3 > Lesson 27 (2:10). Form development techniques > Opening a list form with the specified filter > In Designer mode > Practical developer guide 8.3 > Lesson 27 (2:10). Form development techniques > Opening a list form with the specified filter > In Designer mode

In Designer mode

So you need to open the Services document list form with a filter by technician (the Technician field value is a reference to the employee selected in the list of employees).

  1. Create a list form of the Employees catalog.
  2. In this form, create the Services command and drag it to the form command bar.
  3. In the command property palette, in the Action field, create a client command handler (fig. 27.40).


    Fig. 27.40. List form of the Employees catalog
  4. In the form module, fill the command handler as shown in listing 27.7.

    Listing 27.7. Services command handler

    &AtClient
    Procedure Services(Command)
     
        FormParameters = New Structure("Filter", New Structure("Technician",
            Items.List.CurrentRow));
        OpenForm("Document.Services.ListForm", FormParameters,, True);
     
    EndProcedure
    This script is similar to the previous listing 27.6 where a report form is opened with a filter by parameterized command value. But here a reference to the current item of the Employees catalog is passed to the Technician field filter. This reference is stored in the CurrentRow property of the List form table, which displays dynamic list data. The filter is passed to the form parameters when the Services document list form is opened.
Next page: In 1C:Enterprise mode



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.