Search found 1775 matches

by Gregory Martin
February 26th, 2018, 2:41 pm
Forum: Android
Topic: PHOTO PATH NAME
Replies: 2
Views: 3831

Re: PHOTO PATH NAME

Aaron's response is current in the case when you don't have a single value set that contains the full set of values for an item. However, if the STATE value set contained the full set of state names, you could simplify the code as: string photoFilename = maketext ( "%sphoto%s.jpg" , pathna...
by Gregory Martin
February 26th, 2018, 2:36 pm
Forum: Android
Topic: Two related questions in the same screen
Replies: 3
Views: 3761

Re: Two related questions in the same screen

This is a high priority for us, and it will likely come out in CSPro 7.2.
by Gregory Martin
February 26th, 2018, 2:34 pm
Forum: Feature Requests
Topic: PFF full options when running an application
Replies: 1
Views: 2647

Re: PFF full options when running an application

It's not exactly what you want, but from the CSPro Designer, you can select Tools -> PFF Editor, and that will open the editor with the PFF already opened. You can use Ctrl+R in the PFF Editor to run the program from that application. A favorite shortcut for me is Ctrl+Shift+R in the CSPro Designer,...
by Gregory Martin
February 26th, 2018, 2:23 pm
Forum: Editing
Topic: loop though
Replies: 6
Views: 6306

Re: loop though

This isn't the cleanest code, but you can use getvalue/setvalue. For example: do numeric ctr = 1 while ctr <= 4 setvalue ( maketext ( "X%d" ,ctr), getvalue ( maketext ( "V%d" ,ctr) + getvalue ( maketext ( "W%d" ,ctr)); setvalue ( maketext ( "Y%d" ,ctr), getval...
by Gregory Martin
February 26th, 2018, 2:13 pm
Forum: Android
Topic: DISPLAYING IMAGE ON TABLET
Replies: 2
Views: 3570

Re: DISPLAYING IMAGE ON TABLET

Unfortunately, the current version of CSEntry for mobile devices does not show the images in CAPI text (unlike the Windows desktop version).

The only way that you can show an image is by adding it to a value set or by using the execsystem/view command.
by Gregory Martin
January 26th, 2018, 3:24 pm
Forum: Entry
Topic: A menu to choose the household to be interviewed
Replies: 6
Views: 6266

Re: A menu to choose the household to be interviewed

I'm confused. If you immediately get the value and clear it, then you will only get a value when the questionnaire returns control to the menu program.

Because it's cleared immediately, when starting the menu from the application listing screen (like at the beginning of the day), it will not be set.
by Gregory Martin
January 26th, 2018, 8:18 am
Forum: Entry
Topic: A menu to choose the household to be interviewed
Replies: 6
Views: 6266

Re: A menu to choose the household to be interviewed

Can't you do something like this?
string result = loadsetting("RESULT");
savesetting("RESULT","");

if result <> "" then
    // do something with this result
endif;
by Gregory Martin
January 26th, 2018, 8:17 am
Forum: Entry
Topic: How to Random Order Set of Questions
Replies: 2
Views: 3626

Re: How to Random Order Set of Questions

What you are doing won't work because you need to keep track of what has already been entered. For example, your logic in Q1 needs to know whether or not Q2...Q5 have been entered already. A few years ago I posted an example of randomizing the order of CSPro questions which you can find on the forum...
by Gregory Martin
January 24th, 2018, 10:44 am
Forum: Other
Topic: GPS in windows
Replies: 1
Views: 2889

Re: GPS in windows

There is no direct way. However, you could use execsystem to open IE/Chrome/Firefox though and pass in the URL that you want to load. This, for example, is the White House: https://www.google.com/maps/place/38.897651,-77.036512 You can use maketext to construct that string, with .../place/latitude,l...
by Gregory Martin
January 23rd, 2018, 10:44 am
Forum: Synchronization
Topic: FTP - SYNCDATA or SYNCFILE
Replies: 5
Views: 4786

Re: FTP - SYNCDATA or SYNCFILE

Syncdata does work with FTP servers. It won't send up a CSPro DB file, but will instead send a variety of files (like Dropbox) that can be reconstructed to a CSPro DB file. You can use Data Viewer to create a CSPro DB file from the cases uploaded to the FTP server.