I am having trouble getting around the new synchronization of data to Dropbox from Android tablets. I have two external dictionaries. I have only synced .dat files in the past and understand that the new sync only works with .csdb. I have updated my .pff to read:
[Run Information]
Version=CSPro 7.0
AppType=Entry
[DataEntryInit]
Interactive=Ask
[Files]
Application=.\followup_ghana.ent
InputData=.\followup_ghana.csdb
[ExternalFiles]
BL_INPUT_DATA_DICT=.\lookup1_followup.dat
BL_INPUT_ROST_DICT=.\lookup_roster_followup.dat
[Parameters]
My logic code is below:
Code: Select all
function syncdropbox ()
if syncconnect(Dropbox) then
// get the latest versions of the application files from Dropbox
syncfile(GET,"followup_ghana.pff");
syncfile(GET,"followup_ghana.pen");
// get the latest lookup file from Dropbox
syncdata(GET,BL_INPUT_DATA_DICT);
syncdata(GET,BL_INPUT_ROST_DICT);
// send the latest survey data to Dropbox
syncdata(PUT,FOLLOWUP_GHANA_DICT);
syncdisconnect();
endif;
end;
Any help would be much appreciated. What I would ideally want is for the data to be saved to a different folder from the .pff and .pen file on Dropbox with each tablet getting its own folder and uploading data by date? Something like the below code (except it doesn't work for me)
Code: Select all
//string Date=edit("999999",sysdate("DDMMYY"));
//syncfile(PUT,"*.csdb",concat("ifpri_mnutrition_ghana/Data/followup_field","/", getusername(), "/",Date,"/")) ;
//syncdisconnect();