Search found 2399 matches

by josh
January 21st, 2021, 10:26 am
Forum: Entry
Topic: Cascading From LGA to Settlements not displaying Value and labels of the Cascaded Fields
Replies: 2
Views: 1309

Re: Cascading From LGA to Settlements not displaying Value and labels of the Cascaded Fields

You can get the label from the value set using the getlabel() function. It takes two arguments, first is the name of the variable or value set to get the label from and the second is the code that you want the label of. So in your example you can do: vsLabels(idx) = getlabel(DISTRICT_VS1, GEO_DISTRI...
by josh
January 21st, 2021, 9:14 am
Forum: Entry
Topic: Accessing a roster from an other application
Replies: 2
Views: 1409

Re: Accessing a roster from an other application

The idea is in the second application you use loadcase on the external dictionary (the dictionary from the first application) to load the case that contains the roster data you want. Then you can you loop through the roster using a do loop from 1 to the number of rows of the roster i.e. count(ROSTER...
by josh
January 20th, 2021, 4:27 pm
Forum: Tools
Topic: CSSOrt silently omit data when a record have more instances than the allowed maximum
Replies: 10
Views: 19124

Re: CSSOrt silently omit data when a record have more instances than the allowed maximum

Trevor, I think this is a different issue. The fix for this in 7.6 is simply to show the message at the end of the cssort run if there were warnings. In this case the warnings are legit since the number of record occs in the data file is greater than the max in the dictionary. So the fix doesn't rem...
by josh
January 20th, 2021, 2:17 pm
Forum: Synchronization
Topic: Deleting data on an ftp server
Replies: 4
Views: 2039

Re: Deleting data on an ftp server

That should be fine. Just make sure to delete it on the devices too, otherwise if the device with test data on it syncs it can re-upload the test data.
by josh
January 20th, 2021, 9:14 am
Forum: Android
Topic: dirlist function
Replies: 2
Views: 1607

Re: dirlist function

In CSPro 7.5 you can use path.GetFileName() or path.GetFilenameWithoutExtension() to get just the filename. In earlier versions you had to write your own versions of those functions that would search backwards through the string to get the last "/".
by josh
January 20th, 2021, 7:15 am
Forum: Synchronization
Topic: Deleting data on an ftp server
Replies: 4
Views: 2039

Re: Deleting data on an ftp server

The data files are in CSPro/DataSync/<dictionary name>.

Note that you shouldn't delete while the survey is still ongoing. If you delete the data while users are still syncing it may cause problems with synchronization.
by josh
January 19th, 2021, 1:27 pm
Forum: Entry
Topic: PREFILL NAMES ROSTER FROM PRELOADED LOOKUP FILE
Replies: 6
Views: 2894

Re: PREFILL NAMES ROSTER FROM PRELOADED LOOKUP FILE

Take a look at the example in the workshop lessons on the resources page: https://www.csprousers.org/resources/
by josh
January 19th, 2021, 1:24 pm
Forum: Editing
Topic: trace help (a tiny detail)
Replies: 7
Views: 5756

Re: trace help (a tiny detail)

I didn't realize you were using "set trace". I didn't even know that existed. I was referring to just "trace(on)" which is global. As Greg, set trace(on) is something different.
by josh
January 19th, 2021, 10:26 am
Forum: Editing
Topic: trace help (a tiny detail)
Replies: 7
Views: 5756

Re: trace help (a tiny detail)

Is this in CSEntry or in CSBatch?
by josh
January 19th, 2021, 10:07 am
Forum: Editing
Topic: trace help (a tiny detail)
Replies: 7
Views: 5756

Re: trace help (a tiny detail)

Unless you have a trace(off) somewhere that sounds like a bug. I'll see if we can reproduce it.