<?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 Re: auto populate a field from another in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605643#M4382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am still learning this and am really stuggling with some of the basic concepts here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I create an onsetactive event for page2 of my form?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried inserting....onsetactive="WriteToH2BDepth".... into line one of my form APL below and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub WriteToH2Depth 'script from Ivan" End Sub....into the VBS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This didn't work though...Am I on the right track?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here my APL for H2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;PAGE name="PAGE5" caption="H2" backgroundcolor="white"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29" caption="H2" x="3" y="3" width="18" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;COMBOBOX name="H2" field="H2" x="16" y="2" width="30" height="12" border="true" tabstop="true" tooltip="" limittolist="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LISTITEM value="Oa" text="Oa"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LISTITEM value="Oe" text="Oe"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/COMBOBOX&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29.5" caption="Depths" x="50" y="3" width="35" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2TDEPTH" field="H2TDEPTH" x="77" y="2" width="18" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29" caption="-" x="95" y="3" width="10" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29.7" caption="" x="1" y="30" width="45" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2BDEPTH" field="H2BDEPTH" x="102" y="2" width="18" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL28.5" caption="Texture" x="1" y="19" width="35" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2Texture" field="H2Texture" x="30" y="19" width="40" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29.6" caption="Color" x="1" y="77" width="35" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2COLOR" field="H2COLOR" x="21" y="77" width="40" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&amp;lt;LABEL name="LABEL29.9" caption="Note" x="64" y="77" width="25" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2NOTE" field="H2NOTE" x="83" y="77" width="40" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;BUTTON name="cmdAddB1" x="3" y="92" width="23" height="10" onclick="Call drawto10yr" caption="10YR " tabstop="true" alignment="center"/&amp;gt;....................................etc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Nov 2010 12:53:09 GMT</pubDate>
    <dc:creator>markfarina</dc:creator>
    <dc:date>2010-11-15T12:53:09Z</dc:date>
    <item>
      <title>auto populate a field from another</title>
      <link>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605639#M4378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best way to auto-populate a text box with the value from a text box on the previous tab??? Is this possible? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see attached picture.&amp;nbsp; In this example, the user would populate the bottom depth of a soil horizon and when he/she tabs over to the next page...the horizon top depth is auto populated from the bottom depth on the previous tab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;APL from H1 tab:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29.5" caption="Depths" x="50" y="3" width="35" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H1TDEPTH" field="H1TDEPTH" x="77" y="2" width="18" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29" caption="-" x="95" y="3" width="10" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29.7" caption="" x="1" y="30" width="45" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H1BDEPTH" field="H1BDEPTH" x="102" y="2" width="18" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 13:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605639#M4378</guid>
      <dc:creator>markfarina</dc:creator>
      <dc:date>2010-11-10T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: auto populate a field from another</title>
      <link>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605640#M4379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Munsell soil colors huh?&amp;nbsp; I understand what you mean, but is it essential?&amp;nbsp; I believe it's possible to do.&amp;nbsp; Ahhh...Munsell colors take me back.&amp;nbsp; Good luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Nov 2010 14:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605640#M4379</guid>
      <dc:creator>StevenRehbaum</dc:creator>
      <dc:date>2010-11-10T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: auto populate a field from another</title>
      <link>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605641#M4380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Usually a control can only get assigned values, when the page to which the control belongs, is active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You therefore need to write a script that triggers with the page's onsetactive event. This script should fill the editboxes by reading the values from the previous page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 08:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605641#M4380</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2010-11-11T08:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: auto populate a field from another</title>
      <link>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605642#M4381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the onsetactive event for page H2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim obj // creates object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set obj = ThisEvent.Object.Parent // passes object reference for the parent of the page i.e the form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If Not obj.Mode = 1 Then //will not run code if form is pulled up by the identify tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPageH1, pPageH2&amp;nbsp; // creates page variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPageH1 = ThisEvent.Layer.Forms("EDITFORM").Pages("H1") //sets object reference for page H1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPageH2 = ThisEvent.Layer.Forms("EDITFORM").Pages("H2") //sets object reference for page H2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pPageH2.Controls("H2TDEPTH").Value = pPageH1.Controls("H1BDEPTH").Value //takes the value from one control and puts it in the other&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 14:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605642#M4381</guid>
      <dc:creator>IvanKautter</dc:creator>
      <dc:date>2010-11-11T14:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: auto populate a field from another</title>
      <link>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605643#M4382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am still learning this and am really stuggling with some of the basic concepts here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I create an onsetactive event for page2 of my form?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried inserting....onsetactive="WriteToH2BDepth".... into line one of my form APL below and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub WriteToH2Depth 'script from Ivan" End Sub....into the VBS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This didn't work though...Am I on the right track?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here my APL for H2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;PAGE name="PAGE5" caption="H2" backgroundcolor="white"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29" caption="H2" x="3" y="3" width="18" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;COMBOBOX name="H2" field="H2" x="16" y="2" width="30" height="12" border="true" tabstop="true" tooltip="" limittolist="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LISTITEM value="Oa" text="Oa"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LISTITEM value="Oe" text="Oe"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/COMBOBOX&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29.5" caption="Depths" x="50" y="3" width="35" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2TDEPTH" field="H2TDEPTH" x="77" y="2" width="18" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29" caption="-" x="95" y="3" width="10" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29.7" caption="" x="1" y="30" width="45" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2BDEPTH" field="H2BDEPTH" x="102" y="2" width="18" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL28.5" caption="Texture" x="1" y="19" width="35" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2Texture" field="H2Texture" x="30" y="19" width="40" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;LABEL name="LABEL29.6" caption="Color" x="1" y="77" width="35" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2COLOR" field="H2COLOR" x="21" y="77" width="40" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&amp;lt;LABEL name="LABEL29.9" caption="Note" x="64" y="77" width="25" height="12" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="H2NOTE" field="H2NOTE" x="83" y="77" width="40" height="12" border="true" tabstop="true" tooltip=""/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;BUTTON name="cmdAddB1" x="3" y="92" width="23" height="10" onclick="Call drawto10yr" caption="10YR " tabstop="true" alignment="center"/&amp;gt;....................................etc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 12:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605643#M4382</guid>
      <dc:creator>markfarina</dc:creator>
      <dc:date>2010-11-15T12:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: auto populate a field from another</title>
      <link>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605644#M4383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be on the rigth track.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you create a Sub out of Ivan's code and add onsetactive="Call WriteToH2BDepth()" as in the following example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;PAGE page="page2" onsetactive="Call WriteToH2BDepth()" ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcPad will execute the script when the page is set active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I like to write "Call WriteToH2BDepth()" but ="WriteToH2BDepth" should work as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did notice though, that there was no page2 or onsetactive in your apl for H2 below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 06:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605644#M4383</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2010-11-19T06:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: auto populate a field from another</title>
      <link>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605645#M4384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, I finally got the onsetactive to work!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My mistake was that I did not correctly define (page="page5") in the apl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Original,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;PAGE name="PAGE5" caption="H2" backgroundcolor="white" onsetactive="Call Ivans code"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Corrected,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;PAGE name="PAGE5" caption="H2" page="page5" backgroundcolor="white" onsetactive="Call Ivans code"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to everyone.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 12:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/auto-populate-a-field-from-another/m-p/605645#M4384</guid>
      <dc:creator>markfarina</dc:creator>
      <dc:date>2010-12-01T12:15:10Z</dc:date>
    </item>
  </channel>
</rss>

