Search found 1775 matches

by Gregory Martin
January 4th, 2024, 7:51 am
Forum: Editing
Topic: Duplicate Household Head Name
Replies: 3
Views: 32847

Re: Duplicate Household Head Name

How about using the HashMap object: https://www.csprousers.org/help/CSPro/HashMap.html Something like: HashMap string hhNames( string ); if hhNames. contains (HH_NAME) then errmsg ( "'%s' already encountered in case '%s'" , HH_NAME, hhNames(HH_NAME)); else // associate the household name w...
by Gregory Martin
January 2nd, 2024, 8:15 am
Forum: News
Topic: Beta Version 8.0
Replies: 2
Views: 17056

Re: Beta Version 8.0

The enumerators will have to leave the beta program: https://support.google.com/googleplay/answer/7003180?hl=en#:~:text=Leave%20a%20beta%20program You'll want to test this on a device before instructing others to do so, as I'm not sure if it will revert to 7.7.3, or if it will simply not install new...
by Gregory Martin
December 14th, 2023, 5:37 pm
Forum: Android
Topic: executing an apk on android 13
Replies: 8
Views: 59312

Re: executing an apk on android 13

Files in the Downloads directory that aren't created by CSEntry won't be able to be deleted, as Android keeps track of who "owns" the file. I'm assuming that you're trying to delete a file that the other application created? Files that CSEntry creates itself in that directory can probably ...
by Gregory Martin
December 13th, 2023, 12:19 pm
Forum: Android
Topic: executing an apk on android 13
Replies: 8
Views: 59312

Re: executing an apk on android 13

Versions of CSEntry that are put into Google Play are no longer able to query for other applications, which is what we need to do to launch, say, com.softjads.jorge.meurecordatorio. This is a change Google made in 2022. We tried to get an exception to this, as we don't know what people will want to ...
by Gregory Martin
November 28th, 2023, 2:19 pm
Forum: Android
Topic: installing an apk from csentry
Replies: 1
Views: 6603

Re: installing an apk from csentry

We haven't changed anything in CSPro related to this, so it's related to Google's continual locking down of the Android ecosystem. According to this, https://medium.com/@vishtech36/installing-apps-programmatically-in-android-10-7e39cfe22b86, Installing applications might be possible if we requested ...
by Gregory Martin
November 27th, 2023, 10:50 am
Forum: Android
Topic: ADDING SHAPE FILE FOR ENUMERATION ARE
Replies: 3
Views: 7263

Re: ADDING SHAPE FILE FOR ENUMERATION ARE

Nothing has changed since that post except for the ability to display/collect vector geometry as GeoJSON. However, that means that you can convert your shapefile to GeoJSON and then display it on a map: https://www.csprousers.org/help/CSPro/Map_addGeometry_function.html There are quite a few resourc...
by Gregory Martin
November 20th, 2023, 8:45 am
Forum: Tools
Topic: Read Only Database
Replies: 1
Views: 5802

Re: Read Only Database

That message occurs when you try to open a CSPro DB (SQLite) file in read/write mode without the permissions to do so. What is the location of the file that you are trying to associate with HPQF2_DICT? Make sure that it is located in a directory to which you have write access.
by Gregory Martin
November 15th, 2023, 9:44 am
Forum: Tools
Topic: Filecopy
Replies: 4
Views: 11724

Re: Filecopy

Let's say that I have a subdirectory, Images, located in the directory where my application is. CSPro evaluates paths based on the application directory, so if you wanted to copy all files in Images to a backup directory named after the current timestamp, you might have code like this: // create a b...
by Gregory Martin
October 23rd, 2023, 11:24 am
Forum: Entry
Topic: Error in search (selcase)
Replies: 4
Views: 10153

Re: Error in search (selcase)

You are allowing the multiple selection of cases: CaseFound = selcase (TABLA_DICT, "" ) where pos ( strip (BUSCAR), INGREDIENTE) = 1 include (INGREDIENTE, ID_GRUPO, ID_AUP) multiple ; // <-------------- If you do that, you have to iterate over the selected cases to determine what to proces...
by Gregory Martin
October 18th, 2023, 7:33 am
Forum: Entry
Topic: Survey duration error
Replies: 2
Views: 6694

Re: Survey duration error

Your calculation is done PROC UPLOAD_PICTURES_ID, so it's only recording the time to fill the ID field. You want to move it into the level procedure so that it is executed prior to data entry, and then after the case is entered. PROC UPLOAD_PICTURES_LEVEL preproc surveyStartTime = timestamp (); post...