Page 1 of 1

problem sync with drop box

Posted: June 4th, 2017, 10:40 am
by Yana
Hey guys,
how to sync to drop box in new cspro 7, when I sync as usual I got some problem and I can't sync.
so please what were the steps in the new version to complete the task?
thanks

Re: problem sync with drop box

Posted: June 4th, 2017, 11:34 am
by khurshid.arshad
Dear Yana
There is a very good example in Version 7. Please follow these instructions to find example.

Click on Example folder under help tab.
Click on "1 - Data Entry" and you find folder name "Synchronization In Logic"
copy this folder some where else in your system.
Explore this folder and run Menu under Menu Folder

In the logic window you will find this syntax

Code: Select all

function syncWithHeadquarters()

	// Connect to server
	// Change the URL to match your server
	if syncconnect(CSWeb, "http://www.myserver.org/api") = 1 then
just replace this syntax with dropbox:

Code: Select all

function syncWithHeadquarters()

	// Connect to server
	// Change the URL to match your server
	if syncconnect(Dropbox) = 1 then
Save this programme and close it.


. Double click on the file CreateDeployment.bat to generate the Deployment folder
. You will find folder "Synchronization in Logic" under Deployment. Copy this folder to the Dropbox
. If running on Android, copy the folder "Synchronization in Logic" to the csentry folder on the Android device
. Run the menu application, login as interviewer, choose "enter data" and enter some cases
. Run the menu application, login as supervisor, choose "Sync with headquarters" to synchronize with the Dropbox

You can read all these information in the file "readme".
I hope it works for you.
Regards;
a.

Re: problem sync with drop box

Posted: June 5th, 2017, 5:22 am
by josh
In addition to what Khurshid explained, if you are only syncing your main data file you can do it without writing any logic. In your data entry application in CSPro designer choose "Synchronization Options..." from the menu. Choose "Dropbox" as the server type and pick the direction to sync (PUT/GET/BOTH). Then create your pen file and copy to the device via USB as usual. Now from the case list screen (after you tap the name of your application) there is a an option to synchronize. It will sync your data file with your Dropbox. To download the data from Dropbox use the DataViewer tool. It will automatically combine the data from all the enumerators that synced into a single data file. See "Synchronization Overview" in the online help for more details.

Re: problem sync with drop box

Posted: June 6th, 2017, 2:46 am
by Yana
thanks I will go through the steps