problem sync with drop box

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
Yana
Posts: 51
Joined: October 6th, 2016, 6:57 am

problem sync with drop box

Post 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
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: problem sync with drop box

Post 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.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: problem sync with drop box

Post 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.
Yana
Posts: 51
Joined: October 6th, 2016, 6:57 am

Re: problem sync with drop box

Post by Yana »

thanks I will go through the steps
Post Reply