Page 1 of 1

Synchronisation from Logic

Posted: May 15th, 2021, 8:21 am
by Ekoutiame
Hello dear, I want to write a synchronisation from logic code. First I want to know where to include the synchronisation from logic code in cspro logic.

Seconde I want after the synchronisation of the data by the enumerator, the questionnaire quit the tablet so that the enumerator do not have access to the questionnaire anymore. I will be happy to have an example code.

Best regards,

Ekoutiame

Re: Synchronisation from Logic

Posted: May 19th, 2021, 9:26 am
by Gregory Martin
There are two general options for synchronization:

1) Use Simple Sync: https://www.csprousers.org/help/CSPro/s ... imple.html. With this approach, the interview controls when the data is synchronized.

2) Have your sync executed as part of a menu program. In this way, the data of interest is loaded as an external dictionary to a menu program and you write your own sync logic.

See more here: https://www.csprousers.org/help/CSPro/s ... ation.html

If you want to write sync logic, then you have to go with the second option. There is an example of a menu program in the CSPro examples folder:

1 - Data Entry\CAPI Census\Menu