Synchronization complete but unable to find data on dropbox

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Synchronization complete but unable to find data on dropbox

Post by josh »

Did you add the IRS_HTH_DICT dictionary to your application? If not, do so using Add Files from the File menu. If you already added then you have probably mistyped the name of the dictionary in your logic.
parthsaha
Posts: 15
Joined: March 8th, 2021, 11:16 am

Re: Synchronization complete but unable to find data on dropbox

Post by parthsaha »

Dear Josh,

Thanks for the reply, but if I add the IRS_HTH_DICT, it asks for password when we want to run. We want it avoid asking the password, that's why we are using setfile method.

Thanks
Parth
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Synchronization complete but unable to find data on dropbox

Post by josh »

You have to add it to the application so that CSPro knows what it is. However, when you run the application and it brings up the file associations dialog which asks for the data file to associate with the dictionary, you can set the file type to "None". That way it won't try to open the file when the application first starts. Instead, the file is only opened with your call to setfile that specifies the password.
parthsaha
Posts: 15
Joined: March 8th, 2021, 11:16 am

Re: Synchronization complete but unable to find data on dropbox

Post by parthsaha »

Dear josh,

Many thanks for the reply. It actually works.

You are a PRO.

Parth
tegegne mulu
Posts: 2
Joined: August 24th, 2020, 4:39 am

Re: Synchronization complete but unable to find data on dropbox

Post by tegegne mulu »

I get this error ERROR(senddata, 5): Invalid function call (external dictionary name expected)
function senddata ();

Code: Select all

[u]   if syncconnect(Dropbox)=1 then[/u]
   syncdata(PUT,VACCINE_MENU_DICT);
   syncdata(PUT, TEMPLATE_FOR_INTERNATIONAL_TRAVELER_S_VACCINATIO_DICT);
   syncdata(PUT,VACCINE_DATA_BASE_DICT);
   syncfile(GET, "../Vaccine Menu/Template for international Traveler’s vaccination services database.pen", "./Template for international Traveler’s vaccination services database.pen");
   syncfile(GET, "../Vaccine Menu/Template for international Traveler’s vaccination services database.pff", "./Template for international Traveler’s vaccination services database.pff");
   syncfile(GET, "../Vaccine Menu/Vaccine data base.pff","/Vaccine data base.pen");
   syncfile(GET, "../Vaccine Menu/Vaccine data base.pff","/Vaccine data base.pff");
 endif;
 end;[
/code]
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Synchronization complete but unable to find data on dropbox

Post by Gregory Martin »

One of the dictionaries that you are trying to sync must be the main input dictionary of your application. You can only sync external dictionaries.

Based on the names, I would assume that VACCINE_MENU_DICT is causing the problem. Is there any reason you are trying to sync the data from a menu program? Usually the data collected in a menu program is temporary, so removing that line will likely fix your problem.
Post Reply