When i try to transfer all ".dat" files from supervisor tablet to enumerator tablet with the code 1, it works. When i try to transfer a specific file from supervisor tablet to enumerator table, it gives me error Please see code 2. the picture is attached for error message."
Code 1:
Code: Select all
function Syncronizationdata()
If Sel=1 then //Synchronization: Receive Assigned households from Supervisor
if syncserver(Bluetooth, "..") then
syncdisconnect();
stop(1);
else
endif;
elseif Sel=2 then //Synchronization: Send Assigned households to Enumerator
if syncconnect(Bluetooth) then
syncfile(PUT, "../CASH/*.dat", "/CASH/" );//First Path is "FROM" and second Path is "TO"//working
syncdisconnect();
stop(1);
else
endif;
endif;
end;
Code: Select all
function Syncronizationdata()
If Sel=1 then //Synchronization: Receive Assigned households from Supervisor
if syncserver(Bluetooth, "..") then
syncdisconnect();
stop(1);
else
endif;
elseif Sel=2 then //Synchronization: Send Assigned households to Enumerator
filesname=concat("Target Household Assignment-", edit("9999",CL_Cluster));
if syncconnect(Bluetooth) then
syncfile(PUT, "../CASH/" + filesname + ".dat", "/CASH/" );//First Path is "FROM" and second Path is "TO"
syncdisconnect();
stop(1);
else
endif;
endif;
end;
http://idspak.com/Screenshot_2017-06-21-11-37-49.jpeg
[/img]
Thanks.
a.