<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcPad autonaming photos with IMAGEBOX control does not name with prefix/autonumber in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/arcpad-autonaming-photos-with-imagebox-control/m-p/359872#M2599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(Cross-posted to gis.stackexchange)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In brief:&amp;nbsp; Photo names generated by an IMAGEBOX control are in format YYYYMMDD_HHMMSS but names via Picture tab are &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt; MY_PREFIX_AutoincrementedNumber&amp;gt;.&amp;nbsp;&amp;nbsp; I want the former to be like the latter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcPad 10.0 R2 (Build 30) on a Getac E110 tablet, and ArcPad 10.0 SP5 on the desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with automatic naming of photographs by ArcPad.&amp;nbsp; I have a feature class which has (among others) three text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fields which I have specified as "Picture Field(s)" when I "Get Data For ArcPad" using the ArcPad Data Manager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A colleague and I have made a custom form which has (amongst others) three controls, each to add an image using an IMAGEBOX control.&amp;nbsp; We have, however, retained the "Picture" tab so that photos can alternatively be added via the same three nominated &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Picture Fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;both a prefix (from the field name) and the number that ArcPad automatically generates, e.g., PHOTO_CHAN_1_0003.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I then immediately add a second photo to the same feature, via the second named Picture Field, but through the customized &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IMAGEBOX control, then the photo file is given a YYYYMMDD_HHMMSS name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QUESTION:&amp;nbsp; How can I get the IMAGEBOX control to generate the name using the prefix/number format that I get when I use &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the "Picture" tab?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked that "Date/time in filename" is definitely NOT enabled on the "Camera" tab of "ArcPad Options".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked at the XML for the IMAGEBOX control.&amp;nbsp; This correctly associates the control with the Picture Field with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"field=PHOTO_CHAN_2" as an example.&amp;nbsp; However, "defaultvalue=" is empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could I perhaps set "defaultvalue=PHOTO_CHAN_2_&amp;lt; wildcard to generate auto-incremented numbers&amp;gt;".&amp;nbsp; If so, what is the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt; wildcard&amp;gt;?&amp;nbsp; Does it generate the "_" prefix, or do I add that manually as I have done here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Considering the help file says "defaultvalue" is "A simple expression that specifies the default value of the image box. ", I think &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is a long shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or can I set the name via "ImageBox.Value" but what variable contains the auto-incremented number?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Advice would be much appreciated, thank you.&amp;nbsp; If you can point me to pages in an ArcPad or ArcPad Studio manual, so much &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the better.&amp;nbsp; I haven't been able to find anything yet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 00:11:33 GMT</pubDate>
    <dc:creator>RichardRoger</dc:creator>
    <dc:date>2014-03-28T00:11:33Z</dc:date>
    <item>
      <title>ArcPad autonaming photos with IMAGEBOX control does not name with prefix/autonumber</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-autonaming-photos-with-imagebox-control/m-p/359872#M2599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(Cross-posted to gis.stackexchange)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In brief:&amp;nbsp; Photo names generated by an IMAGEBOX control are in format YYYYMMDD_HHMMSS but names via Picture tab are &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt; MY_PREFIX_AutoincrementedNumber&amp;gt;.&amp;nbsp;&amp;nbsp; I want the former to be like the latter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcPad 10.0 R2 (Build 30) on a Getac E110 tablet, and ArcPad 10.0 SP5 on the desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with automatic naming of photographs by ArcPad.&amp;nbsp; I have a feature class which has (among others) three text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fields which I have specified as "Picture Field(s)" when I "Get Data For ArcPad" using the ArcPad Data Manager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A colleague and I have made a custom form which has (amongst others) three controls, each to add an image using an IMAGEBOX control.&amp;nbsp; We have, however, retained the "Picture" tab so that photos can alternatively be added via the same three nominated &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Picture Fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;both a prefix (from the field name) and the number that ArcPad automatically generates, e.g., PHOTO_CHAN_1_0003.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I then immediately add a second photo to the same feature, via the second named Picture Field, but through the customized &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IMAGEBOX control, then the photo file is given a YYYYMMDD_HHMMSS name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QUESTION:&amp;nbsp; How can I get the IMAGEBOX control to generate the name using the prefix/number format that I get when I use &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the "Picture" tab?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked that "Date/time in filename" is definitely NOT enabled on the "Camera" tab of "ArcPad Options".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked at the XML for the IMAGEBOX control.&amp;nbsp; This correctly associates the control with the Picture Field with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"field=PHOTO_CHAN_2" as an example.&amp;nbsp; However, "defaultvalue=" is empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could I perhaps set "defaultvalue=PHOTO_CHAN_2_&amp;lt; wildcard to generate auto-incremented numbers&amp;gt;".&amp;nbsp; If so, what is the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt; wildcard&amp;gt;?&amp;nbsp; Does it generate the "_" prefix, or do I add that manually as I have done here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Considering the help file says "defaultvalue" is "A simple expression that specifies the default value of the image box. ", I think &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this is a long shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or can I set the name via "ImageBox.Value" but what variable contains the auto-incremented number?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Advice would be much appreciated, thank you.&amp;nbsp; If you can point me to pages in an ArcPad or ArcPad Studio manual, so much &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the better.&amp;nbsp; I haven't been able to find anything yet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 00:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-autonaming-photos-with-imagebox-control/m-p/359872#M2599</guid>
      <dc:creator>RichardRoger</dc:creator>
      <dc:date>2014-03-28T00:11:33Z</dc:date>
    </item>
  </channel>
</rss>

