Search found 1772 matches

by Gregory Martin
March 18th, 2024, 8:05 am
Forum: Entry
Topic: Itemlist function
Replies: 4
Views: 66

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: 74

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: 146

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: 130

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: 144

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: 77

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: 55

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...
by Gregory Martin
February 26th, 2024, 9:16 am
Forum: Android
Topic: Save data with pff
Replies: 6
Views: 144

Re: Save data with pff

Are you generating the PFF from another CSPro application? If so, and you don't need any input from the user, you can simply construct the case in logic, with the data file's dictionary attached as an external dictionary, and then save the data using writecase: https://www.csprousers.org/help/CSPro/...
by Gregory Martin
February 26th, 2024, 9:03 am
Forum: Entry
Topic: Application startup error in CSEntry 8.0 android app
Replies: 10
Views: 705

Re: Application startup error in CSEntry 8.0 android app

Single quotes must be escaped. You can use the replace function: https://www.csprousers.org/help/CSPro/r ... ction.html
dict_text = replace(dict_text, "'", "''");
Let us know if this doesn't work.
by Gregory Martin
February 26th, 2024, 8:55 am
Forum: Other
Topic: CSPro 8 compile error when tr function has parentheses
Replies: 3
Views: 179

Re: CSPro 8 compile error when tr function has parentheses

This is embarrassing (since I'm the one who programmed this). You're right that this is a bug which occurs if you include a right parenthesis in the translated string literal. We'll fix it for CSPro 8.0.1. In the meantime, a workaround would be to use a different style of parenthesis,()instead of ()...