Search found 2035 matches

by josh
February 25th, 2020, 11:30 pm
Forum: Android
Topic: Value Set
Replies: 6
Views: 175

Re: Value Set

To make sure it works when you go back you should put your logic in the onfocus rather than in the preproc. Also make sure that the your valueset variable is local (declared inside the proc) or if it is declared globally then remove the old values by calling valueset.clear() by before adding in the ...
by josh
February 25th, 2020, 6:56 am
Forum: Synchronization
Topic: how to show synchronized cases
Replies: 1
Views: 44

Re: how to show synchronized cases

No, there is no way to do that.
by josh
February 25th, 2020, 6:55 am
Forum: Android
Topic: Value Set
Replies: 6
Views: 175

Re: Value Set

You need to use diseases.add("Cancer", 1) instead of diseases("Cancer", 1).
by josh
February 24th, 2020, 5:36 pm
Forum: Synchronization
Topic: Finding User Synch History
Replies: 1
Views: 33

Re: Finding User Synch History

The cspro_sync_history has syncs by device. Each row represents a sync session for a device. A session represents a single call to syncdata() so one session can sync multiple cases in the same dictionary (or none). The device field is a unique id for each device. You can use getdeviceid() in CSPro l...
by josh
February 23rd, 2020, 10:24 pm
Forum: News
Topic: Variable(s) length do not agree with dictionary ID length
Replies: 2
Views: 69

Re: Variable(s) length do not agree with dictionary ID length

That error means that the length of the variable you are passing to loadcase does not match the length of the id-items for the dictionary you are trying to load the case from. In your case the variable INTERVIEWER_MENU is a different length from the id-items of HOUSEHOLD_DICT. Loadcase works by taki...
by josh
February 23rd, 2020, 10:20 pm
Forum: Entry
Topic: Remove a Value based on a Previous Selection in a roster.
Replies: 4
Views: 129

Re: Remove a Value based on a Previous Selection in a roster.

In Arjuns example FAVORITE_COLOR is a previous selection. In your case, since there are multiple previous selections you will need to loop to remove all the previous selections. Loop from 1 to the current row of the roster (use currocc() function to get the current row) and remove the value chosen a...
by josh
February 23rd, 2020, 10:13 pm
Forum: Entry
Topic: skipping fields
Replies: 1
Views: 40

Re: skipping fields

In system controlled mode any field that is skipped is assigned notappl. A skipped field has been skipped so by definition it should be blank. If you try to do otherwise in data entry you will run into a lot of issues. Just go with it. If you really need them to be other values record them in batch ...
by josh
February 17th, 2020, 11:38 am
Forum: Synchronization
Topic: Publish and Deploy
Replies: 6
Views: 170

Re: Publish and Deploy

Si vous verifiez le dossier CSPro/apps dans Dropbox avec l'interface web (https://www.dropbox.com/home/CSPro/apps) est-ce que vous y vouez le fichier .zip et le fichier .csds de votre application? If faudra aussi regardez le ficher sync.log dans le repertoire CSEntry de la tablette pour voir s'il n'...
by josh
February 16th, 2020, 7:27 am
Forum: Synchronization
Topic: Publish and Deploy
Replies: 6
Views: 170

Re: Publish and Deploy

Probablement le compte Dropbox que vous utilisez sur votre tablette est different du compte utilisez sur votre post Windows. Comme CSPro sauvegarde le compte Dropbox après la premiere synchronization, on oublie des fois le compte q'on utilise. Vous pouvez supprimez le compte sauvegarder pour changer...
by josh
February 12th, 2020, 11:35 am
Forum: Android
Topic: using maps without listing form
Replies: 3
Views: 127

Re: using maps without listing form

If you look in the examples directory there is a second mapping example called Listing Menu with Map. It uses the map object in logic (https://www.csprousers.org/help/CSPro/maps.html) to display map similar to the one in the case listing.