Filtered syncs

What would you like to see in CSPro?
AriSilva
Posts: 162
Joined: July 22nd, 2016, 3:55 pm

Filtered syncs

Postby AriSilva » January 29th, 2018, 11:43 am

Hi folks,
Sync files with get and put AND where logic_expression.
This would allow to upload and/or download selected records.
For example, get a sample_dict file for a specific interviewer downloading just the data from the census tracks s/he will be working with.
Or, suppose the interviewer lost his/her phone, and we want to download back to him the records he already processed, in order for him to continue his (tired of that politically correct he/she) work.
Best
Ari
Best
Ari

josh
Posts: 1605
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Filtered syncs

Postby josh » January 29th, 2018, 11:58 am

This is partially supported now. You can pass a universe to syncdata() which is matched against the id-items of the cases to be synced. For example if you do syncdata(GET, MYDICT, "01") will only get cases where the case id starts with "01". So, for example, if your first id-item is a 2 digit code for province, then you will only sync cases in province 01. This isn't as flexible as a where clause that lets you use any variables in the case but it works for cases where the cases you want to sync are based on a hierarchical id scheme like you often have in geographical codes.

AriSilva
Posts: 162
Joined: July 22nd, 2016, 3:55 pm

Re: Filtered syncs

Postby AriSilva » February 1st, 2018, 6:22 am

Thanks, Josh.
That is good enough, at least for my purposes. It is exactly what I was thinking of.
My fault, I did not do my homework and study the sync functions.
Best
Ari
Best
Ari


Return to “Feature Requests”