In 1C:Enterprise mode

Let us enter the values required for data exchange.

  1. Start 1C:Enterprise in the debug mode.
  2. Set the Numbering prefix to BR (fig. 24.14).


    Fig. 24.14. Editing the constant

    Then let us open the exchange plan and describe the predefined node (the current infobase node).
  3. In the Enterprise section, on the navigation panel, click Branches.
    You can see that the list of exchange plans contains a single empty row.
  4. Open that row, enter BR for the infobase code and Branch for its description (fig. 24.15), then click Save and close.


    Fig. 24.15. Creating an exchange plan node
  5. Create an exchange plan node with CI for the infobase code and Central infobase for its description, and the Main checkbox selected (fig. 24.16), then click Save and close.


    Fig. 24.16. Creating an exchange plan node
  6. Click the new Central infobase node and then click Write changes.
    To better understand the process, let us check some infobase catalogs.
  7. Open the list of the Customers catalog and ensure that it is empty for now.
  8. Open the list of Warehouses and ensure that it is also empty.
    It does not contain the predefined item because you set its Update predefined data property to Do not update automatically.
  9. Open the Data exchange data processor and click Start data exchange.

    This fills the catalogs with items, and also fills other objects that are included in the exchange. And the message window displays the messages shown in fig. 24.17.


    Fig. 24.17. Exchange plan messages

    Note. To view the list of customers replicated from the central infobase, refresh the list (press F5).

    Now let us test how exchange is processed on the other side.
  10. In the Customers catalog, create a new customer with an arbitrary name.
    Note that the customer code has the BR prefix and the code numbering starts from one.
  11. Return to the Data exchange data processor and click Start data exchange.
  12. Return to the central Infobase, perform the data exchange there, and ensure that the customer created in the branch Infobase has been transferred to the central one.
Next page: Distributed infobases
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.