PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Replication and WithSpace function
  • Replication via a replication server
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Synchronizes the data corresponding to a replication. This replication was created by the replication editor (ReplicEdit).
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 19 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
New in version 19
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
New in version 22
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Example
// Starts the synchronization
ReplicSynchronize("MyReplication")
Syntax

Synchronization in direct mode Hide the details

<Result> = ReplicSynchronize(<Replication Name>)
<Result>: Boolean
  • True if the synchronization was performed,
  • False otherwise. For more details about the problem, use ErrorInfo.
<Replication Name>: Character string (with quotes)
Name of replication to synchronize. This name corresponds to the name of the ".wer" file created by ReplicEdit. This file must be found beside the executable.

Synchronization with a replication server Hide the details

<Result> = ReplicSynchronize(<Replication Name> [, <Options>])
<Result>: Boolean
  • True if the synchronization was performed,
  • False otherwise. For more details about the problem, use ErrorInfo.
<Replication Name>: Character string (with quotes)
Name of replication to synchronize. This name corresponds to the publication name for a replication server.
<Options>: Optional Integer constant
Type of replication to perform. These options are taken into account for a replication with a replication server.
replicaImmediateThe replica is immediately created, during the synchronization.
This replication mode can be quite long but it guarantees to be updated from the master database.
replicaPeriodic
(Default value)
The replica that is taken into account is the replica that is available on the server.
If the replica is periodically created on the server, the last created replica is taken into account.
If the replica is not periodically created on the server, the last generated replica is taken into account. This last replica was generated just after the last synchronization.
This replication mode is fast but it does not guarantee to be "entirely updated" from the master database.
Versions 19 and later
replicaNoProgressBar
New in version 19
replicaNoProgressBar
replicaNoProgressBar
From version 190044, a progress bar is displayed by default during the synchronization. This progress bar is adapted to the current platform.
This constant allows you not to display the progress bar and to restore the previous behavior.
This constant can be combined with the replicaImmmediate and replicaPeriodic constants.
Note: you should use the same type of replication as the one defined on the server.
Remarks

Replication and WithSpace function

The replication is not compatible with WithSpace in the code of the client application. This function changes the nehavior of HFSQL. Using this function in the client application can affect the efficiency of replication.
Versions 21 and later
From version 21 update 3 (version 210065), the synchronization functions (programmed or assisted universal replication) return an error to the client application if WithSpace was applied to at least one of the replicated files.
New in version 21
From version 21 update 3 (version 210065), the synchronization functions (programmed or assisted universal replication) return an error to the client application if WithSpace was applied to at least one of the replicated files.
From version 21 update 3 (version 210065), the synchronization functions (programmed or assisted universal replication) return an error to the client application if WithSpace was applied to at least one of the replicated files.

Replication via a replication server

During a replication via a replication server (especially for the replication of mobile data (Android or iOS)), the Web server that is hosting the replication server must be configured to allow the data upload and download. Therefore, the option "Maximum authorized length for content" configured in "Filtering requests" of an IIS server must be greater than the size of subscriber data (RPA).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230rpl.dll
Windows Mobile wp230rpl.dll
Linux wd230rpl.so
Android wd230android.jar
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment