Editing Data Dictionary in FTP

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

Editing Data Dictionary in FTP

Post by sah »

Dear Team,
I would like to find out the following:
  • 1.How to review files from the ftp, CSPro/DataSYNC by knowing which particularly netbooks/Tablets send the data. Some times, data sync get messy and you would like to clean it from there
  • 2. How to fix updated dictionary on the server, without losing the previous data

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

Re: Editing Data Dictionary in FTP

Post by josh »

With FTP we do not track which device sent which file. You could add a variable to your dictionary to capture the device id and use the getdeviceid() function in your application to fill in the field. Then once you downloaded the data from the FTP server you could see which case came from which device.

You can overwrite the dictionary file that is on the server with a new version of the dictionary. The dictionary is stored in the folder CSPro\DataSync\<dictionary name>\dict on the server. Be VERY VERY careful if you change the dictionary after uploading data to the server. It is ok to add new non-required records to your dictionary and it is ok to add new variables to the dictionary but only at the end the record. Never delete an existing variable from the dictionary, never change the size of an existing variable and never add a variable in the middle of the record. If you do anything that changes the start position or size of an existing variable then your data will have problems when you download it because the data already on the server will not match the dictionary.
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

Re: Editing Data Dictionary in FTP

Post by sah »

Thanks Josh for the information, I think, absolute/Relative position will be applied in dictionary update so not to get a messy data.
Post Reply