re: ArcPad - Application controls - Forms - Scripts in .vbs - Camera
We have an ArcPad 10.1 map .apm that I load onto Yumas (1 and 2 / W7 OS). I include a previously-developed road culvert layer .apl, etc., which is an empty shapefile for feature collection, as well as the script controlling its form, a .vbs.
Field crews are requesting camera access directly from the road culvert form. Up to now they have been taking pictures outside of the form, in the normal runtime, which is not convenient, since the form has many details across its 9 pages.
I’m not finding any examples of this out there. Maybe I’ve not thought of where I should really be searching. Any tips on this are welcome, thank you.
It’s about bringing an application control on to a form. Are there similar examples – even those unrelated to the camera – out there?
Solved! Go to Solution.
When you add an ImageBox, its "Click Action" is set to "Auto", and that works directly for me. You don't actually have to set an "onclick" event.
You will need to have a field in your table to which the name of the photo is automatically written but, I imagine, you have that already.
You could just add an ImageBox and give it small height and width. Would that serve your purpose?
That would definitely be a start. I can put an ImageBox on the form. What I would then need an example of is writing the ImageBox's onclick event in order to launch the camera.
When you add an ImageBox, its "Click Action" is set to "Auto", and that works directly for me. You don't actually have to set an "onclick" event.
You will need to have a field in your table to which the name of the photo is automatically written but, I imagine, you have that already.
I am targeting five photo fields with the properties of the respective ImageBox. All is well, except for two things.
Photos taken from an ImageBox on this custom form:
If you have any tips on these two things, I would appreciate your input.
(In my case, photos log to the .aph only if I use the camera on the QuickCapture toolbar, and not from one of the image boxes on the form.)