|
|
|
|
|
- Overview
- Implementation
- Necessary conditions
- Steps to follow
- Installing the replication server
- Defining the replication
- Programming the replication
Replication of mobile data (Android or iOS)
 Available only with these kinds of connection
The Assisted Universal Replication is available in Android and iOS. This replication allows you to replicate data coming from different databases. Necessary conditions - The analysis must be shared between the WINDEV and WINDEV Mobile application (Android or iOS).
- The Master database must be an HFSQL database (Classic or Client/Server).
- The mobile database (Subscriber) must be an HFSQL Classic database.
- The structure of the database must be strictly identical on the two platforms.
Installing the replication server Reminders/Notes - IMPORTANT: Date and time must be identical on server and Android/iOS terminals.. Internal dates (those used by replication in HFSQL data files) are in UTC.
- The installation package of the replication server is provided with WINDEV, WEBDEV and WINDEV Mobile. It is located in the "\Install\WDRServer" subdirectory of the IDE installation folder.
- If you own WEBDEV websites, the replication server and the WEBDEV Application Server can be installed on the same server.
Caution: It is necessary to give specific rights to the replication server installation directory.. Read rights and execution rights must be granted to the Internet user (IUSR_Computer_name account) on this directory (and in the sub-directories). Programming the replication In the Mobile application, the WLanguage functions must be used to perform the synchronization. The wizard for publishing the replication on the replication server provides a basic code:
ReplicOpen("replication name", "", "IP address", "login", "password")
ReplicSynchronize("replication name")
The following functions must be used:
| | ReplicInfo | Returns information about a replication. | ReplicInitialize | Initializes or reinitializes a replication defined by the replication editor (ReplicEdit). | ReplicOpen | Opens a replication in direct mode or with a replication server. | ReplicSynchronize | Synchronizes the data corresponding to a replication. |
Note Don't forget to set the connection to the local database (HFSQL Classic data file on the mobile device) in the Android (or iOS) project code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|