Simple Synchronization With Dropbox
Simple Synchronization With Dropbox
Summary
This step-by-step article describes how to synchronize your data and applications between CSPro and
Dropbox. This article describes simple synchronization. See the CSPro helps for advanced
synchronization options.
When using mobile devices for a survey or census it is important to be able to transfer data collected in
the field back to the head office. This allows for faster processing and analysis as well as better
monitoring of the progress of the field operation.
In CSPro, transferring data between devices in the field and the head office is referred to as
synchronization. CSPro supports data synchronization over the Internet between interviewers' devices in
the field and a central server. Interviewers use CSEntry to collect data on tablets, phones, or laptops and
then use the Internet to synchronize the data on their devices with a server at the head office or in the
cloud. This article focuses on using Dropbox to synchronize.
Requirements
CSPro 7.0 or higher
You can find this application in the CSPro examples folder. See the CSPro helps to open the
examples folder.
This article assumes you are familiar with the following topics:
1. upload
2. download
3. synchronize
This example assumes that the .pff and .pen files for the application have already been placed on the
device and that you have entered data into a file.
c. In the “Synchronize main data file” drop down select the type of synchronization you
wish to do.
▪ Download changes from server: Only receive modified data from the server. Do
not upload local changes. This might be used for a supervisor who wants to see
what changes interviewers have made but does not want to make changes
themselves.
▪ Sync local and remote changes: Send local changes to the server and download
changes from the server. This option can be used when multiple interviewers
need to work on the same assignments. Note that if both interviewers modify a
case at the same time, one will overwrite the changes made by the other.
Check the Download application files box if you want to download the .pen and .pff
files from the server to the local device in order to support application updates in the
field.
In Path to application on server specify the path on the server where the latest versions
of the .pen and .pff files are stored. This is used only if the Download application files
option is checked
e. Copy the .pen and .pff files to the CSEntry folder on the target device
as you normally would when creating or modifying a CSEntry application.
After following the above steps, the application on the device is ready for synchronization. After
entering data simply tap on the synchronization icon or select “Synchronize” from the menu.
Synchronization can only be launched from the case listing view; “Synchronize” cannot be run
while entering case data.
Tap to bring
You will see either the synchronize up menu
icon or synchronize will be on the
menu. Which one you see depends
on the device. On larger screens
the icon will appear. On smaller
screens, you will need to go to the
menu to synchronize.
Once you tap “Synchronize”, CSPro will transfer data to/from Dropbox based on the selected
specification. The first time you synchronize, you will get the Dropbox authorization dialogs. This
is done only for the first synchronization. After that, the authorization is saved on the device.
Logging in/out of Dropbox through the browser has no effect. CSPro only uses the credentials
you entered for the initial connection to Dropbox.
The first time you synch with DropBox, CSPro will create the following folder structure
Dictionary Name
This comes from the name of the
dictionary associated with the file
If you plan on downloading the application from the survey to the devices, create a folder for
the application files and place the application files (.pen, .pen, and any reference files) in that
folder. In the below example, we create folder “/CSPro/DataSynch/SIMPLE_CAPI/app” for the
application files
Dictionary Name
To get data from Dropbox use the use the Data Viewer tool from the tools menu
ii. CSPro will populate the “Data” dropdown using the data file list from Dropbox
The names
appearing in the
dropdown list
come from the
Dictionary Label
iii. Select the dictionary label associated with the files you wish to download
vi. Click “Download”. CSPro will download the file to the specified folder/file name
and will display the contents of the file.
• CSPro Data Viewer populates the “Data” drop down using the Dictionary Label. Design data
labels so the source (application) can be easily identified and is not ambiguous.
References
www.dropbox.com
CSPro Helps
Properties
• Data Entry
• CSEntry
• CAPI (Computer Assisted Personal Interviewing
• Synchronization
If you have additional files associated with the application such as image files or lookup files, place them
in the Resource Folder. CSPro will package these files in the .Pen file. When you download the
application files these files will be included. See the CSPro helps for more details about the Resource
Folder.
If you have a large lookup or other big files (such as manuals), it is better to use sync from logic to sync
each file separately. Placing these files in the pen file can make the pen file very large and slow to
update. Using sync from logic, you can download only the changed file. You can find details on sync
from logic in the CSPro helps.
CSPro's Dropbox sync does not store a single data file in the Dropbox. Instead, it stores multiple files in
the directory CSPro/DataSync/ folder, one for each sync. Because of this, you will not see the data as a
single file. In order to obtain the combined data file, use the DataViewer to download the data from
Dropbox.
o Windows:
▪ Go to Control Panel
▪ Credential Manager
▪ Remove “Dropbox”.
o Android:
▪ Go to Settings
▪ Application Manager
▪ CSEntry
▪ Click on Clear Cache (this removes the Dropbox information)
▪ CSPro will with ask for the Dropbox account when trying to synchronize.