Search found 1775 matches

by Gregory Martin
March 21st, 2024, 9:13 am
Forum: Entry
Topic: Urgent Assistance Needed: Script Overflow Issue Causing Program Shutdown!
Replies: 4
Views: 292

Re: Urgent Assistance Needed: Script Overflow Issue Causing Program Shutdown!

Typically you do this with a lookup file. You create a lookup file, typically in Excel, that maps the IDSTUDENT value to the depto, muni, etc. variables. This makes it easier to maintain your mappings, will speed up your program immensely, and will avoid the problem of the script overflow. Take a lo...
by Gregory Martin
March 21st, 2024, 9:11 am
Forum: Entry
Topic: Date Capture Type
Replies: 2
Views: 219

Re: Date Capture Type

You can set it in the preproc, like this:
PROC E120

preproc

   
// if the date has not been previously assigned, set it to today's date
   
if visualvalue(E120) = notappl then
       
E120 = sysdate("DDMMYYYY");
    endif;
by Gregory Martin
March 20th, 2024, 6:53 am
Forum: News
Topic: CSPro 8.0 released
Replies: 2
Views: 1085

Re: CSPro 8.0 released

You'll always be able to install old versions of CSPro, which you can find here: https://www.csprousers.org/downloads The main difference is that we won't fix bugs in old versions, and you won't have access to new features. We'll still provide support though, as many users, including some big ones, ...
by Gregory Martin
March 18th, 2024, 8:05 am
Forum: Entry
Topic: Itemlist function
Replies: 4
Views: 270

Re: Itemlist function

You can replace itemlist calls with maketext with the %v formatter, which formats values as they are defined in the dictionary:
itemlist(ENUMERATOR_ID, L_V01, L_V02, L_V03, L_V04, L_V05, A01)

maketext("%v%v%v%v%v%v%v", ENUMERATOR_ID, L_V01, L_V02, L_V03, L_V04, L_V05, A01)
by Gregory Martin
March 11th, 2024, 8:40 am
Forum: Android
Topic: Issue displaying HTML report on tablet (CSentry 8.0)
Replies: 1
Views: 87

Re: Issue displaying HTML report on tablet (CSentry 8.0)

You can use the encode function to convert text to HTML: https://www.csprousers.org/help/CSPro/encode_function.html More generally, you should take a look at the templated reporting feature: https://www.csprousers.org/help/CSPro/templated_reports.html This would simplify your work greatly, as you wo...
by Gregory Martin
March 6th, 2024, 1:23 pm
Forum: Other
Topic: EXTRACTION
Replies: 3
Views: 270

Re: EXTRACTION

Unless your .zip file is encrypted, you can do this without WinRAR by using the built-in function decompress: https://www.csprousers.org/help/CSPro/d ... ction.html
by Gregory Martin
March 4th, 2024, 9:31 am
Forum: Entry
Topic: Data is deleted (date) and text
Replies: 1
Views: 142

Re: Data is deleted (date) and text

If you are seeing ***** values in your data, it is generally how the special value DEFAULT is represented, and indicates that there is a numeric issue with the problem. This is usually because: A value is too large to represent in the field. For example, a two-digit item cannot store 123. You are st...
by Gregory Martin
February 27th, 2024, 5:09 pm
Forum: Android
Topic: Save data with pff
Replies: 6
Views: 159

Re: Save data with pff

You can turn off that prompt here: https://www.csprousers.org/help/CSPro/c ... tions.html

Uncheck "Confirm end-of-case." I usually do that on most projects, and if I want a confirmation, I add it as the last field on my form.
by Gregory Martin
February 26th, 2024, 5:31 pm
Forum: Android
Topic: stuck CSEntry app with intent
Replies: 1
Views: 85

Re: stuck CSEntry app with intent

It's true that only one instance of EntryActivity can be open at a time. When you say that they are closing the application by using Android keys, are you saying that they are going back to the Android home screen and then reentering your application? If they use the back button from within CSEntry,...
by Gregory Martin
February 26th, 2024, 10:15 am
Forum: Android
Topic: Passing Values to Roster via pff
Replies: 1
Views: 59

Re: Passing Values to Roster via pff

The current CSPro logic functions don't make it easy to split a string by a delimiter, but you can use a user-defined function to convert a list (or array) into a single string, and then convert it back. These functions use a unlikely-to-be-used delimiter, but you could change that character if ╳ do...