Select to view content in your preferred language

ArcPad autonaming photos with IMAGEBOX control does not name with prefix/autonumber

694
0
03-27-2014 05:11 PM
RichardRoger
Deactivated User
(Cross-posted to gis.stackexchange)

In brief:  Photo names generated by an IMAGEBOX control are in format YYYYMMDD_HHMMSS but names via Picture tab are
< MY_PREFIX_AutoincrementedNumber>.   I want the former to be like the latter.

I am using ArcPad 10.0 R2 (Build 30) on a Getac E110 tablet, and ArcPad 10.0 SP5 on the desktop.

I have a problem with automatic naming of photographs by ArcPad.  I have a feature class which has (among others) three text
fields which I have specified as "Picture Field(s)" when I "Get Data For ArcPad" using the ArcPad Data Manager.

A colleague and I have made a custom form which has (amongst others) three controls, each to add an image using an IMAGEBOX control.  We have, however, retained the "Picture" tab so that photos can alternatively be added via the same three nominated
Picture Fields.

For a particular feature, if I add a photo to it, via one named field, using the standard "Picture" tab, the photo file is named using
both a prefix (from the field name) and the number that ArcPad automatically generates, e.g., PHOTO_CHAN_1_0003.

If I then immediately add a second photo to the same feature, via the second named Picture Field, but through the customized
IMAGEBOX control, then the photo file is given a YYYYMMDD_HHMMSS name.

QUESTION:  How can I get the IMAGEBOX control to generate the name using the prefix/number format that I get when I use
the "Picture" tab?

I have checked that "Date/time in filename" is definitely NOT enabled on the "Camera" tab of "ArcPad Options".

I have looked at the XML for the IMAGEBOX control.  This correctly associates the control with the Picture Field with
"field=PHOTO_CHAN_2" as an example.  However, "defaultvalue=" is empty.

Could I perhaps set "defaultvalue=PHOTO_CHAN_2_< wildcard to generate auto-incremented numbers>".  If so, what is the
< wildcard>?  Does it generate the "_" prefix, or do I add that manually as I have done here?

Considering the help file says "defaultvalue" is "A simple expression that specifies the default value of the image box. ", I think
this is a long shot.

Or can I set the name via "ImageBox.Value" but what variable contains the auto-incremented number?

Advice would be much appreciated, thank you.  If you can point me to pages in an ArcPad or ArcPad Studio manual, so much
the better.  I haven't been able to find anything yet.
Tags (3)
0 Kudos
0 Replies