How to sync and send all surveys on DropBox
Posted: November 10th, 2021, 9:56 am
HI
My name is Carlos
I'm developing an application in CSPro 7.6 to run on Tablet.
I'm using DROPBOX to do the synchronism.
It's all OK.
Only when I send the .dat file, only the latest updates come, or rather I read that the synchronization always sends new and changed surveys to the DropBox server.
I would like if possible that whenever the person using it sends all the questionnaires.
I'm using the following code (There are four tablets, so I used these different ways to send them to dropbox:
if syncconnect(Dropbox) = 1 then
if COD_ENT_W=1 then
syncfile(PUT,"/storage/emulated/0/Android/data/gov.census.cspro.csentry/files/csentry/Dados/Jauari.dat","\Tablet_1\Dados\jauari.dat");
endif;
if COD_ENT_W=2 then
syncfile(PUT,"/storage/emulated/0/Android/data/gov.census.cspro.csentry/files/csentry/Dados/Jauari.dat","\Tablet_2\Dados\jauari.dat");
endif;
if COD_ENT_W=3 then
syncfile(PUT,"/storage/emulated/0/Android/data/gov.census.cspro.csentry/files/csentry/Dados/Jauari.dat","\Tablet_3\Dados\jauari.dat");
endif;
if COD_ENT_W=4 then
syncfile(PUT,"/storage/emulated/0/Android/data/gov.census.cspro.csentry/files/csentry/Dados/Jauari.dat","\Tablet_4\Dados\jauari.dat");
endif;
My name is Carlos
I'm developing an application in CSPro 7.6 to run on Tablet.
I'm using DROPBOX to do the synchronism.
It's all OK.
Only when I send the .dat file, only the latest updates come, or rather I read that the synchronization always sends new and changed surveys to the DropBox server.
I would like if possible that whenever the person using it sends all the questionnaires.
I'm using the following code (There are four tablets, so I used these different ways to send them to dropbox:
if syncconnect(Dropbox) = 1 then
if COD_ENT_W=1 then
syncfile(PUT,"/storage/emulated/0/Android/data/gov.census.cspro.csentry/files/csentry/Dados/Jauari.dat","\Tablet_1\Dados\jauari.dat");
endif;
if COD_ENT_W=2 then
syncfile(PUT,"/storage/emulated/0/Android/data/gov.census.cspro.csentry/files/csentry/Dados/Jauari.dat","\Tablet_2\Dados\jauari.dat");
endif;
if COD_ENT_W=3 then
syncfile(PUT,"/storage/emulated/0/Android/data/gov.census.cspro.csentry/files/csentry/Dados/Jauari.dat","\Tablet_3\Dados\jauari.dat");
endif;
if COD_ENT_W=4 then
syncfile(PUT,"/storage/emulated/0/Android/data/gov.census.cspro.csentry/files/csentry/Dados/Jauari.dat","\Tablet_4\Dados\jauari.dat");
endif;