Page 1 of 1

Download partial info from CSWEB

Posted: July 14th, 2017, 1:40 pm
by diaznhugo
Hello

I would like to know if it is possible to download partial information of the CSWEB?

Example: only download questionnaires created by a specific user. is possible?

thanks

Re: Download partial info from CSWEB

Posted: July 15th, 2017, 9:02 am
by josh
If you use logic for you sync rather than downloading from DataViewer then this it is possible to only download cases who case ids match a certain pattern. You can write a data entry application or a batch application to download the data from CSWeb using the functions synconnect() and syncdata(). When you call syncdata() you can pass a universe string to it. Only cases whose case-ids match the universe string will be downloaded. For example if I have the following cases on the server:

1234
1235
2111

and I call:

syncdata(GET, MYDICT, "123")

then it will download just the first two cases since they start with "123".

For this to work in your case you would have to make the case-ids in your dictionary start with some identifier for the user so that you could use that as the universe.

Re: Download partial info from CSWEB

Posted: July 18th, 2017, 11:47 am
by diaznhugo
Thank you very much Josh.
I tested it and it worked perfectly