Generate CAPI questions

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
kawtef
Posts: 18
Joined: March 24th, 2016, 5:54 am

Generate CAPI questions

Post 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
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Generate CAPI questions

Post 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.
kakinyim
Posts: 42
Joined: January 16th, 2012, 6:38 am
Location: Remote/Virtual

Re: Generate CAPI questions

Post 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.
Attachments
Generate CAPI questions QSF from DCF.xls
(57.5 KiB) Downloaded 621 times
kawtef
Posts: 18
Joined: March 24th, 2016, 5:54 am

Re: Generate CAPI questions

Post 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.
hannesrr
Posts: 55
Joined: January 8th, 2013, 5:02 pm
Location: Lima, Perú, South America

Re: Generate CAPI questions

Post by hannesrr »

Excelent post!!
Thank you very much, Its working.
Hannes Rodriguez :geek:
Lima, Perú
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Generate CAPI questions

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Generate CAPI questions

Post by josh »

Sorry, not currently on our radar. Kakinyi's solution is probably your best bet.
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Generate CAPI questions

Post by sherrell »

ok, thnx Josh; smg
sunilgu30
Posts: 1
Joined: October 24th, 2018, 3:10 am

Re: Generate CAPI questions

Post 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
kawtef
Posts: 18
Joined: March 24th, 2016, 5:54 am

Re: Generate CAPI questions

Post 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
Post Reply