Problems with data synchronization to and from Dropbox

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
acubed_101
Posts: 3
Joined: December 4th, 2017, 12:05 pm

Problems with data synchronization to and from Dropbox

Postby acubed_101 » December 4th, 2017, 12:56 pm

Dear all,
Am rather new with CSPro. I managed to have the pff and pen file on my Dropbox. However, I have been problems with how to synchronize the data directly to my Dropbox and from my Dropbox to the tablet.

Efforts made: I copied the pff and pen files to the Dropbox in order to synchronize it to the tablet. However, the Dropbox is not is not part of the options for synchronization of the tablet (the options are FTP server and My device).
I also downloaded the pff and pen files into the tablet. I tried to synchronize this with the tablet but it was always directing me to first upload the file via the FTP server.

Based on this, I will need your help regading:
1) If I have to copy the files directly to Dropbox or there is a way I can synchronize it directly from my PC.
2) How can I sychronize the file to the tablet via the Dropbox.

Looking forward to your response.

Thanks!

khurshid.arshad
Posts: 273
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan
Contact:

Re: Problems with data synchronization to and from Dropbox

Postby khurshid.arshad » December 5th, 2017, 11:20 am

Dear;

Please see this link for cspro 7 and above:
http://www.csprousers.org/forum/viewtopic.php?f=11&t=2117

You can find more infromation on this forum.


SyncConnect Function (Dropbox)
This page describes the syncconnect function when connecting to Dropbox. For generalized information on the function, see the documentation for the syncconnect function.
Format
b = syncconnect(Dropbox);
Description
The syncconnect function opens a connection to Dropbox to synchronize data and files over the Internet. The first and only argument must be the keyword Dropbox. This requires an account with the online file sharing service Dropbox. The first time the connection is made, the user will see a prompt to enter the Dropbox username and password and these settings will be saved in secure storage for future synchronizations.
Example
// connect to Dropbox
if syncconnect(Dropbox) then

// get the latest versions of the application files from Dropbox
syncfile(GET,"/MyApp/MyApp.pff");
syncfile(GET,"/MyApp/MyApp.pen");

// send the latest cases to Dropbox
syncdata(PUT,SURVEY_DICT);

syncdisconnect();

endif;



best.
a.

josh
Posts: 1269
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Problems with data synchronization to and from Dropbox

Postby josh » December 5th, 2017, 1:48 pm

For syncing data via Dropbox in version 7 check out this link: http://teleyah.com/cspro/How%20Do%20I%2 ... ropbox.pdf

There is currently no way to use Dropbox to do the initial deployment of your application (pen and pff file) to your device. Once you have copied the application to the device initially you can use Dropbox synchronization to update the files in case your application has changed. We are working on a feature for initial deployment of applications but it is not yet ready.

acubed_101
Posts: 3
Joined: December 4th, 2017, 12:05 pm

Re: Problems with data synchronization to and from Dropbox

Postby acubed_101 » December 6th, 2017, 6:51 am

Many thanks khurshid.arshad and Josh for your response!
@Josh, I also tried to copy the files in to my mobile but the application never accepts the files. The app kept asking me to upload the files via FTP. What would you recommend as a better and straightforward option as I do not have FTP account? Would cloud server also be an option in this respect?

Best.

josh
Posts: 1269
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Problems with data synchronization to and from Dropbox

Postby josh » December 6th, 2017, 7:25 am

For the initial deployment connect your Android device to a PC using a USB cable and copy the pen and pff to the csentry directory on your Android device.

To update the applications once they have already been deployed to the device you can use Dropbox. See the section entitled "Download the application (.pen, .pff) files" in the link I posted.

acubed_101
Posts: 3
Joined: December 4th, 2017, 12:05 pm

Re: Problems with data synchronization to and from Dropbox

Postby acubed_101 » December 13th, 2017, 9:27 am

Thanks @Josh


Return to “Synchronization”