Search found 1858 matches

by Gregory Martin
February 3rd, 2025, 3:29 pm
Forum: Tools
Topic: Two questions, Exporting to JSOn and Exporting value labels in data
Replies: 1
Views: 11919

Re: Two questions, Exporting to JSOn and Exporting value labels in data

1) If you're using CSPro 8.0+, the dictionary file is in JSON format. 2) What format are you exporting to? For example, if you export to Excel format, you can export labels. The help page gives an example of how to use connection string properties to do this: https://www.csprousers.org/help/CSPro/da...
by Gregory Martin
January 31st, 2025, 5:26 pm
Forum: News
Topic: Future development and support
Replies: 1
Views: 40619

Re: Future development and support

In May of this year, CSPro will turn 25-years-old. If you count the software "parents" of CSPro, ISSA and IMPS, then you can add many additional years to the age of CSPro. USAID, as well as other partners, have been reliable funders of CSPro development and support for many decades. That d...
by Gregory Martin
January 29th, 2025, 10:50 am
Forum: Entry
Topic: In combo box the Range-value option is not showing
Replies: 3
Views: 10640

Re: In combo box the Range-value option is not showing

Take a look at the Data Entry Options dialog: https://www.csprousers.org/help/CSPro/change_data_entry_options.html You will want to change this option: Show only discrete values in combo boxes: When displaying the values in a combo box, only the discrete values, not the range values, from the value ...
by Gregory Martin
January 28th, 2025, 3:03 pm
Forum: Android
Topic: Automatic skip after time limit on field
Replies: 12
Views: 34749

Re: Automatic skip after time limit on field

Ah, @htuser's mention of JavaScript makes me change my answer. This is possible in CSPro 8.0. See attached for an example, where a question is skipped if the user doesn't enter a value within five seconds. In CSPro, I added a function that will skip to a particular field: function SkipToField( strin...
by Gregory Martin
January 27th, 2025, 8:46 am
Forum: Android
Topic: Automatic skip after time limit on field
Replies: 12
Views: 34749

Re: Automatic skip after time limit on field

There is no ability to set a timer using CSPro to do what you are describing. It is something that we could consider in the future, but I'd like to understand the use case for this. What is the motivation to have the data collection tool automatically skip to the next question?
by Gregory Martin
January 27th, 2025, 8:42 am
Forum: Android
Topic: Audio file saved through Audio object to CSWeb server
Replies: 2
Views: 6328

Re: Audio file saved through Audio object to CSWeb server

Your main options are: 1) Use the syncfile function to send the files to CSWeb: https://www.csprousers.org/help/CSPro/syncfile_function.html 2) Rather than save the audio files to a specific folder, save them to your case using binary dictionary items. Then when you use syncdata to sync your data to...
by Gregory Martin
January 16th, 2025, 7:39 am
Forum: Entry
Topic: Delete a character from a string
Replies: 1
Views: 3539

Re: Delete a character from a string

I'm not sure if you're really posting about CSPro, but if so, you can do something like: function string RemoveTrailingCommas( string text) // convert commas to spaces do numeric ctr = length ( strip (text)) while ctr >= 1 and text[ctr: 1 ] = ',' by - 1 text[ctr: 1 ] = ' ' ; enddo ; // return the tr...
by Gregory Martin
December 26th, 2024, 11:00 am
Forum: Entry
Topic: Get day of the week
Replies: 4
Views: 11361

Re: Get day of the week

You can also look at: viewtopic.php?t=3183
by Gregory Martin
December 11th, 2024, 11:51 am
Forum: Tools
Topic: Exporting entire dictionary in Excel as separate columns
Replies: 2
Views: 4391

Re: Exporting entire dictionary in Excel as separate columns

There is no way to do this directly using CSPro. If you want to automate this process, you will have to parse the dictionary .dcf file yourself and output the data you are interested in. For example, here is a shell of a JavaScript program that writes out some information about a dictionary. The dic...