1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise Platform FAQ
  3. Development

How to setup and work with distributed infobases in 1C:Drive, alternative way, when the subordinate databases will not be created from the main infobase

  • Development
    • How to read and write data to/from a 1C:Enterprise info base to an XML file?
    • How to show totals for dynamic list fields on the form
    • How to setup and work with distributed infobases in 1C:Drive, alternative way, when the subordinate databases will not be created from the main infobase
    • Is it possible to cumulatively select and deselect rows of a form table by just left clicking on them?
    • How to filter a dynamic list via programming
    • How can I create a Dynamic List via programming?
    • How to filter a value table on a form by changing the query filling the value table
    • How to insert a value table to a query as a parameter
    • Conditional Appearance: How to set it up from the Designer
    • An example on how the asynchronous methods work
See more

Question: How to setup the distributed infobases in 1C:Drive, when the subordinate databases will not be created from the main infobase, but already existing infobases will be made subordinate to the main infobase?

 

Answer: How to setup a distributed infobases functionality from scratch and how the data exchange is conducted with messages was described here:  

https://support.1ci.com/hc/en-us/articles/4753166692626-How-to-setup-and-work-with-distributed-infobases-in-1C-Drive-

We begin the process as described in the article above, until we have finished the “Configure data sending and receiving rules” step. Afterwards, without proceeding with the “Create initial image of DIB subordinate node” step, just close the “Data synchronization with Distributed infobase” dialog.

Continue with these steps:

-Make sure that the configurations and extensions of the main infobase and the subordinate infobase(s) are identical indeed.

-In the subordinate infobase, Settings -> Application settings -> Data sync, activate “Data sync” and designate “This infobase prefix”, if not already done so.

1.png

 

-In both the main infobase and the subordinate infobase, open the “Nodes of distributed Infobase” window. (All functions -> Exchange plans -> Distributed infobase). Note that in the “Nodes of distributed infobases” list of each of the Infobases, one node icon is marked with a green dot, this is the predefined node of the infobase and it represents the infobase itself. In the main infobase list, you will see the node representing the subordinate infobase too (which was created automatically during the automated setup process in the main infobase). Open this node by double clicking on it. On the other hand, in the subordinate infobase, open the predefined (with green dot) node of the subordinate infobase too, by double clicking on it. Now fill in the Code and Description of the predefined node of the subordinate infobase so that they match the values of it’s node which resides in the main infobase, then save and close.

2.png

 

-Now create a node in the subordinate infobase. This node will represent the main infobase so fill in the Code and Description of the new node of the subordinate infobase so that they match the values of the predefined (green dot) node of the main infobase. Save and close.

3.png

 

-In the subordinate infobase open the main infobase node -> More actions -> Data synchronization parameters -> Connection settings.

4.png

 

-In the subordinate infobase, fill in the “Data exchange transport settings” identical to how you had filled in those in the main infobase.

5.png

 

-In the subordinate infobase run the SetMasterNodeForDistributedInfobases.epf data processor which is attached to this article. Set the “Node to be set master” field of the data processor as the node representing main infobase. Click the `”Set as master” button.

6.png

 

-You will get a message telling that the chosen node is set as the master node. Moreover, the icon color of the node representing the main infobase will turn gold, implying that it is the main node.

7.png

-That’s it, now you can continue with running the data exchange between the Infobases.

 

  • SetMasterNodeForDistributedInfobases.epf
    6 KB Download
© 2020-2022 1C INTERNATIONAL LLC www.1Ci.com Support policy