Page 1 of 1

Dropbox with Multiple Enumurator

Posted: November 29th, 2016, 10:41 am
by yanina
Greeting Expert

I just trial and error creating Capi application. Learning, reading, downloading sample, testing, asking, solving. Thanks to this forum that help me much till this end. Josh, you are so kind.
Now, ....with a bit logic, my application finally completed. I am able to put it through Android, via Dropbox, and bingo.. it is work like a charm Tested, syncronize it and happy ending. I can do Android capi interview by mobile. When all interviewed done, I just concatenate the data from my dropbox, and do the tabulation or analysis. This is so cool. What a amazing CSPro. You are all the great team.

That is for single user . I have no problem.

Now I want my application using others or enumoraror on their Android using my dropbox account as a sharing sync. Can I do that?
- Can I protect the cases that already entried from be modify or delete by others that using my share dropbox?
At the end, I can merge all data they entried.

Many thanks for you all support and help.

Yanin

Re: Dropbox with Multiple Enumurator

Posted: November 30th, 2016, 7:05 am
by josh
With multiple users sharing a Dropbox account people usually have each enumerator sync to a separate folder by including %UID% or %DeviceID% in the path name in the .pnc file. Then you you use the concatenate data tool to combine the files from each enumerator into a single data file. You can see examples of this in the data transfer guide on our documentation page: http://www.census.gov/population/intern ... odocs.html

Re: Dropbox with Multiple Enumurator

Posted: December 2nd, 2016, 8:31 am
by yanina
Thanks Josh
What beautifull guide you gave.

Now, does any logic for PRC file to prevent any enumurators to delete the case entried?
On PFF editor I only found for locking the case for modifying.
Huge thanks.

Yanin

Re: Dropbox with Multiple Enumurator

Posted: December 2nd, 2016, 9:44 am
by josh
In version 7 we are adding an option to the pff file to lock deleting cases.

Re: Dropbox with Multiple Enumurator

Posted: December 6th, 2016, 11:40 pm
by yanina
Hi Josh and Team

Synchronization via Dropbox with PFF file is working fine. Its created the Folder /DropBox Account/DATETIME
But, the next enumerator data synchronized on Dropbox its created to Folder : /Undefined/DATETIME.
Is this normal ?

I tried I to create the PNC file. but, I have got an error when do the Sync.
"Synchronization Error, failed to change server path ..."

I want all enumerators Data will put on DropBox Folder:
/PABC/DATA/%UID%/

Huge thanks for your help.
Would you please see my PFF and PNC below.

Yanin

PFF FILE

Code: Select all

[Run Information]
Version=CSPro 6.3
AppType=Entry
Description=PROJECT ABC

[DataEntryInit]
OperatorID=ME
Interactive=Ask

[Files]
Application=.\PABC.ent
InputData=.\PABCData
PNC FILE

Code: Select all

[SyncFile] 
Version=CSPro 6.3 
Description=PROJECT ABC

[Connection] 
Type=Dropbox

[Sync]
CreateClientPath=/PABC
ClientPath=/PABC
ServerPath=/PABC/APP
Get=PABC.PEN
Get=PABC.PFF

ServerPath=/PABC/data/%UID%/
Put=PABCData.dat
Yanin

Re: Dropbox with Multiple Enumurator

Posted: December 7th, 2016, 2:55 am
by khurshid.arshad
Dear Yanina

I am using this syntax based on your PNC syntax and it is working.

Code: Select all

[SyncFile]
version=CSPro 6.3
Description=PROJECT ABC

[Connection]
Type=Dropbox

[Sync]


createclientpath=/User-2
ClientPath=/User-2
ServerPath=/User-2/ABC


Get=IMC_CAPI.pen
Get=IMC_CAPI.pff

createserverpath=/User-2/ABC/%UID%/
ServerPath=/User-2/ABC/%UID%

Put=Test
a.

Re: Dropbox with Multiple Enumurator

Posted: December 7th, 2016, 7:15 am
by josh
The "undefined" comes because the tablet was not configured with an email address when you setup the tablet. You can add an email address in the Android settings under accounts. The username is taken from this email address. You can also use %DeviceID% instead of %UID% in the pnc file in the path. This will be a unique id for each tablet and it is always set even if no email address was provided.

In your PNC file you need to add:
CreateServerPath=/PABC/data/%UID%/
before the line
ServerPath=/PABC/data/%UID%/

in order to create the directory on the server that you will write to.

Re: Dropbox with Multiple Enumurator

Posted: December 9th, 2016, 4:01 am
by yanina
Thanks khurshid.arshad and Josh for insight.
The PFF file and PNC both you given are working fine.

Now I am confuse, sorry :?
What different PFF and PNC ? What file I have to give to enumerators then ?

Billion thanks.

Yanin

Re: Dropbox with Multiple Enumurator

Posted: December 9th, 2016, 8:20 am
by josh
The pff provides parameters to CSEntry to tell it how to run your application such as which data file to use.

The pnc describes how to synchronize your data.