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

    Procedure Services(Command)
        FormParameters = New Structure("Filter", New Structure("Technician",
        OpenForm("Document.Services.ListForm", FormParameters,, True);
    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
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.