Page 2 of 2

Re: Synchronization complete but unable to find data on dropbox

Posted: March 11th, 2021, 6:37 am
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.

Re: Synchronization complete but unable to find data on dropbox

Posted: March 12th, 2021, 4:23 am
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

Re: Synchronization complete but unable to find data on dropbox

Posted: March 12th, 2021, 6:54 am
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.

Re: Synchronization complete but unable to find data on dropbox

Posted: March 13th, 2021, 2:04 pm
by parthsaha
Dear josh,

Many thanks for the reply. It actually works.

You are a PRO.

Parth

Re: Synchronization complete but unable to find data on dropbox

Posted: August 8th, 2022, 4:03 am
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]

Re: Synchronization complete but unable to find data on dropbox

Posted: August 8th, 2022, 9:52 am
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.