Hi,
I've tried calling the gps function in preproc of a field (or form) and it only appears to work if the location of the android device is set on from csentry (if it's initially set to off, csentry will show you a prompt that takes you to the location settings where you can set it on). If I start off with the location set to on, the gps function (placed in preproc) never returns 1. Is this by design?
I'm using CSPro 7.7
Cheers.
gps function in preproc
-
- Posts: 206
- Joined: November 21st, 2022, 4:41 pm
Re: gps function in preproc
Hello,
Could you attach your zipped application either here or in an email to cspro@lists.census.gov, along with instructions on how to reproduce the error? This will help us test to find out why this error is occurring.
Thank you,
Justin
Could you attach your zipped application either here or in an email to cspro@lists.census.gov, along with instructions on how to reproduce the error? This will help us test to find out why this error is occurring.
Thank you,
Justin
Re: gps function in preproc
Hi,
See attached test program. I've used the interactive gps option and placed it in the preproc of one of the variables.
Deploy on Adroid device (Tablet) and set location to On.
1. Run CSEntry
2. Open the GPS Test Application
3. Enter some value for ID
4. Interactive GPS window comes up
5. Click on the satelite
6. No values on the latitude, longitude and accuracy at the bottom left
7. 60 seconds elapse
8. gps(latitude) and gps(longitude) are NOTAPPL
See attached test program. I've used the interactive gps option and placed it in the preproc of one of the variables.
Deploy on Adroid device (Tablet) and set location to On.
1. Run CSEntry
2. Open the GPS Test Application
3. Enter some value for ID
4. Interactive GPS window comes up
5. Click on the satelite
6. No values on the latitude, longitude and accuracy at the bottom left
7. 60 seconds elapse
8. gps(latitude) and gps(longitude) are NOTAPPL
-
- Posts: 1839
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: gps function in preproc
You're right that this is a problem. I've fixed it, so if you enable the location, the interactive GPS reading occurs correctly.
We could fix this in a CSPro 8.0.2 release (if we do another minor release). How big a problem is this for your survey operation?
We could fix this in a CSPro 8.0.2 release (if we do another minor release). How big a problem is this for your survey operation?
Re: gps function in preproc
Thanks Greg.
By fixing it - do you mean you placed the function in the post proc? That's what we did eventually.
The placement in postproc works for our survey at the moment but I think it'd be good to have it fixed in an upcoming release.
Cheers,
--
Steven Lwendo
By fixing it - do you mean you placed the function in the post proc? That's what we did eventually.
The placement in postproc works for our survey at the moment but I think it'd be good to have it fixed in an upcoming release.
Cheers,
--
Steven Lwendo
-
- Posts: 1839
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: gps function in preproc
Sorry for the delayed response. This went out in a CSEntry update that went out on June 18.