Select to view content in your preferred language

How do I code ArcPad's camera activation button (on the menu bar) right on to a form?

4299
4
Jump to solution
05-25-2015 03:09 PM
RoyN
by
Deactivated User

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?

0 Kudos
1 Solution

Accepted Solutions
RichardRoger
Deactivated User

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.

View solution in original post

4 Replies
RichardRoger
Deactivated User

You could just add an ImageBox and give it small height and width.  Would that serve your purpose?

0 Kudos
RoyN
by
Deactivated User

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.

0 Kudos
RichardRoger
Deactivated User

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.

RoyN
by
Deactivated User

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:

  1. are not logged to the photo layer (.aph)
  2. are not saved to the Photo subfolder where the .aph is. Rather they are saved to the folder holding the ArcPad map (.apm) – even though I set the Default Pictures Path as the Photo subfolder under ArcPad Options.

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.)

0 Kudos