PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Logged replication and log process: Directory for file creation
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
HCreateMasterReplica (Function)
In French: HCréeRéplicaMaître
ODBCOLE DBNot available with these kinds of connection
Creates the description file of a Master Replica (logged replication or universal replication)). The extension of the corresponding file is ".RPM".
The description file of a Master Replica contains the list of Subscriber Replicas with their date of last synchronization. This file is empty when it is created. You must call HCreateSubscriberReplica to initialize this file.
Note: This function is automatically called during the setup phase of the application that manages the replication.
AndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 App Only the universal replication is available.
Note: The replication is not available when accessing a database via Remote access.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 19 and later
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.
New in version 19
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.
iPhone/iPad This function is now available for the iPhone/iPad applications.
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
WINDEVWEBDEV - Server codeReports and QueriesWindowsWindows MobileAjaxUser code (UMC)HFSQLHFSQL Client/ServerHyper File 5.5
// Example 1: Creates the file of master replica in the C:\RPL\Paris directory
// while specifying a file name
HCreateMasterReplica("C:\RPL\Paris\ParisReplica.RPM")
// Example 2: Creates the file of master replica in the C:\TEMP directory
// without specifying a file name
HCreateMasterReplica("C:\TEMP")
// Example 3: Creates the file of master replica in the current directory
HCreateMasterReplica()
Syntax
<Result> = HCreateMasterReplica([<Directory of Master Replica>])
<Result>: Boolean
  • True if the master replica was created,
  • False otherwise (the file already exists in the specified directory for example).
<Directory of Master Replica>: Optional character string (with quotes)
Directory where the description file of Master Replica must be created. This directory must be accessible when using HCreateMasterReplica.
If this parameter:
  • is not specified or if it corresponds to an empty string: the MasterReplica.RPM file is created in the directory specified in the analysis (RPL sub-directory of the data files by default). For the universal replication, if this parameter is not specified or if it corresponds to an empty string (""), the file is created in the current directory.
  • corresponds to a name of directory (network or UNC directory): the MasterReplica.RPM file is created in the specified directory.
    Example: HCreateMasterReplica("C:\Temp") creates the ReplicaMaître.RPM file in the C:\Temp directory.
  • has the <Directory>\<FileName>.RPM format: the <FileName>.RPM file is created in the specified directory.
    Example: HCreateMasterReplica("C:\Temp\Paris.RPM") creates the Paris.RPM file in the C:\Temp directory.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)HFSQLHFSQL Client/ServerHyper File 5.5

Logged replication and log process: Directory for file creation

The logged replication is closely linked to the log process. The log process is automatically enabled when the logged replication is implemented in an application.
For all the files used (data files, log files or replication files), the paths of the corresponding physical files can be defined in the data model editor or by programming.
By default, the tree structure of data files is as follows (example for the SalesMgt application):
The following table presents the default value for these different directories and their configuration mode in the data model editor or by programming.
Default valueWhere to configure it in the data model editor?How to change the default value by programming?
Directory of data filesDirectory of the executable.
  • For all the data files of the application: "Details" tab of the analysis description
  • For each data file: "Info" tab of the description of the data file.
To modify the default directory for the data files of the application, use HSubstDir.
When creating the files for the log process and for the replication, the created directories will be relative to this new directory.
Note: To modify the directory for one of the files only, use HChangeDir.
Directory of the files for replicationRPL sub-directory of the default directory of the data files."Log\Replica" tab of the analysis description.Specify the requested directory in HCreateMasterReplica and HCreateSubscriberReplica.
Directory of files for log processJNL sub-directory of the default directory of data files.
  • For all the data files of the application: "Log\Replica" tab of the analysis description.
  • For each data file: "Various" tab of the description of the data file.
To modify the directory of log files, use HChangeLogDir.
This function is used to:
  • change the directory of Log file (JNL file)
  • change the directory of the JNL file and the directory of the files for the log process (JournalIdentification and JournalOpération files).
Caution: To manage the logged replication in an application, the table of the log operations (JournalOpération.fic file) must be identical for all the data files in replication in the same analysis.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230rpl.dll
Windows Mobile wp230rpl.dll
Linux wd230rpl.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment