Page 1 of 2

Generate CAPI questions

Posted: June 28th, 2017, 4:51 am
by kawtef
Hi all,
Is it possible to generate CAPI questions from Dictionnary (item label) without editing CAPI questions for each questions?

Thank in advance

Re: Generate CAPI questions

Posted: July 4th, 2017, 11:21 am
by Gregory Martin
There is no way to do this automatically. If you had some programming skills, you would read in the dictionary (.dcf) and write out the CAPI questions (.qsf) file. They are both text files, but this task would not be trivial.

Re: Generate CAPI questions

Posted: July 11th, 2017, 1:39 pm
by kakinyim
I normally use a combination of excel and Notepad ++ to generate these CAPI questions.

In Excel file (attached), I have two sheets where the I first paste from DCF macro field names and labels. At cell D2, replace the name of your internal name of your dictionary.

You need the following header,
[CAPI QUESTIONS]
Version=CSPro 7.0

[LANGUAGES]
ENG=English

Tags used here are for version 7. Other versions may have different tags, please check by manually generating a QSF file then compare.

Open your app QSF file using a text editor then Copy and paste from sheet two then remove the quotes ("). Save your file and open your app.

This approach has worked for me.

Re: Generate CAPI questions

Posted: July 12th, 2017, 4:04 am
by kawtef
Thank you kakinyim,
I will test it.
kakinyim wrote:I normally use a combination of excel and Notepad ++ to generate these CAPI questions.

In Excel file (attached), I have two sheets where the I first paste from DCF macro field names and labels. At cell D2, replace the name of your internal name of your dictionary.

You need the following header,
[CAPI QUESTIONS]
Version=CSPro 7.0

[LANGUAGES]
ENG=English

Tags used here are for version 7. Other versions may have different tags, please check by manually generating a QSF file then compare.

Open your app QSF file using a text editor then Copy and paste from sheet two then remove the quotes ("). Save your file and open your app.

This approach has worked for me.

Re: Generate CAPI questions

Posted: February 8th, 2018, 6:59 pm
by hannesrr
Excelent post!!
Thank you very much, Its working.

Re: Generate CAPI questions

Posted: August 3rd, 2018, 7:30 pm
by sherrell
hey Guys,

I was just searching to see if you have a utility for creating the QSF from the DCF. Doing so would be *really* useful...esp. right now, as I have a series of questionnaires, some of which are 100 pages <ack!>. I've done this before (for smaller QREs) using notepad++ and running a series of macros...but obv. that's a bit tedious.

Is this per chance in the works anytime soon?

Thanks,
Sherrell

Re: Generate CAPI questions

Posted: August 4th, 2018, 7:39 am
by josh
Sorry, not currently on our radar. Kakinyi's solution is probably your best bet.

Re: Generate CAPI questions

Posted: August 10th, 2018, 12:22 pm
by sherrell
ok, thnx Josh; smg

Re: Generate CAPI questions

Posted: October 24th, 2018, 6:26 am
by sunilgu30
I am looking for someone who can code capi for my android application. Please inform me.
http://www.lucknow.itsws.com/contact-us.html

Re: Generate CAPI questions

Posted: October 24th, 2018, 6:38 am
by kawtef
sunilgu30 wrote:I am looking for someone who can code capi for my android application. Please inform me.
http://www.lucknow.itsws.com/contact-us.html
hello, I sent you an email via the link.

Thanks