• Overview
  • Creating the replication
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
To implement an assisted replication, the first step consists in creating the replication with ReplicEdit.
The replication is created via a wizard.
The parameters defined in this wizard can be modified in the replication description.
Creating the replication
To create a replication:
  1. Start ReplicEdit (via "Tools .. Replication managers .. ReplicEdit - Replication editor" for example).Start ReplicEdit from WINDEV, WEBDEV or WINDEV Mobile: on the "Tools" pane, in the "Database" group, expand "Replication" and select "ReplicEdit - Replication editor".
  2. If the startup wizard starts, select "Create a new replication".

    Otherwise, select "File .. New". The wizard for creating a replication starts.
  3. In the wizard for creating a replication, specify the name and description of the replication. This name will be given to the replication file that will be created (.WER file).

    Go to the next step.
  4. The description of the data files to synchronize must be loaded in ReplicEdit in order to create the replication.

    The wizard proposes 2 possibilities:
    • use an analysis directly. To do so, select the path of the corresponding ".WDD" file and the associated password (if necessary).
      In this case, the analysis must contain a HFSQL Client/Server connection.
      Indeed, ReplicEdit cannot be used to create a connection. You only have the ability to modify an existing connection.
    • use the description of a HFSQL Client/Server database installed on a server (this method must be used if the application is deployed for example). In this case, the wizard asks for:
      • the connection parameters: address, port, user and password.
      • the database to replicate.
  5. The next step is used to choose the replication direction.

    The replication direction: The replication can be:
    • Bidirectional: the data is synchronized on the master database and on the subscriber database.
    • Toward the subscriber only: the data is synchronized from the master to the subscriber.
    • Toward the master only: the data is synchronized from the subscriber to the master.
  6. The next step is used to choose the method for managing the modification conflicts.

    The management mode of conflicts is used to manage the case when the same records was modified both by the master and by the subscriber. Choose the rule to apply:
    • Most recent has priority: only the last modified record is taken into account.
    • Master always has priority: the record found in the master database is taken into account.
    • Subscriber always has priority: the record found in the subscriber database is taken into account.
      Caution: to avoid any problem, the server and the subscriber computers must use the same time.
  7. At the end of the wizard, you can add a file to the replication or go to the editor directly.
Minimum version required
  • Version 12
This page is also available for…
Click [Add] to post a comment