PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode
  • Initializing filters
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
Initializes or reinitializes a replication defined by the replication editor (ReplicEdit). This initialization is used to define the parameters of the replication (value of the filters). The necessary data is transferred to the local database.
Note: The subscriber database must be created locally by HCreation before using ReplicInitialize.
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
// Initializes the replication
// by passing the zip code to take into account
IF ReplicInfo("MyReplication", replicInitialized) = False THEN
ReplicInitialize("MyReplication", 47012)
END
Syntax
<Result> = ReplicInitialize(<Replication Name> [, <Parameter 1> [, ... [, <Parameter N>]]])
<Result>: Boolean
  • True if the initialization was performed,
  • False otherwise. For more details about the problem, use ErrorInfo.
<Replication Name>: Character string (with quotes)
Name of the replication to initialize. This name corresponds to:
  • the name of ".wer" file, created by ReplicEdit (for an online replication). This file must be found beside the executable.
  • the publication name (for a replication server)
<Parameter 1>: Type of parameter, optional
Value of the first parameter for the replication. If this parameter corresponds to an empty string (""), the previous initialization of parameters will be canceled.
<Parameter N>: Type of parameter, optional
Value of the Nth parameter for the replication. If this parameter corresponds to an empty string (""), the previous initialization of parameters will be canceled.
Remarks

Operating mode

The initialization of the replication is used to:
  • initialize the parameters of filters if necessary
  • re-initialize the parameters of filters to 0.
  • re-initialize a replication (deletion and re-creation of the replication elements: .rpp, .rpa, .syn files, ...).
  • re-initialize the information regarding the ranges of identifiers.
Caution: as soon as a subscriber replica is initialized, you must no longer replace/restore one of the master files (because they contain information regarding the ranges of identifiers for the subscriber replicas).
Warning
From version 17, the replication files created with an application or a site in version 17 (or later) cannot be handled by an application or a site in version 16 (or earlier).
The applications or the sites in version 17 (or later) continue to handle the replication files created with an application or a site in version 16 (or earlier).

Initializing filters

The parameters must be specified in the order defined in the replication editor (ReplicEdit). In the replication editor, the order of the parameters can be viewed (and modified if necessary) via "Replication .. Replication description", "Parameters" tab.
Reminder: To optimize the performance of the universal replication, we advise you to define filters.
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