<?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 Setiing the value of a control on a different page but in the same edit form in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/setiing-the-value-of-a-control-on-a-different-page/m-p/8220#M54</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two pages in a form I use to update attributes - I want to update a control on a page based on a value being changed on a different page.&amp;nbsp; I can update control values on the same page but it doesn't seem to work when trying to change the value of a control box located on another page even though I am hard coding the pathname? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is it in it's simplest form(this doesn't work by the way). The second line works as the control is on that page the and is run when a user changes the value using the onselchange event the first line doesnt as this control is on a different page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please shed some light??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub SiteID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;application.map.editlayer.forms("EDITFORM").pages("General").controls("g_si_tx").value = "Test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;application.map.editlayer.forms("EDITFORM").pages("TL").controls("ob_l_tx").value = "Test1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 00:47:21 GMT</pubDate>
    <dc:creator>RichardGlass</dc:creator>
    <dc:date>2012-12-05T00:47:21Z</dc:date>
    <item>
      <title>Setiing the value of a control on a different page but in the same edit form</title>
      <link>https://community.esri.com/t5/arcpad-questions/setiing-the-value-of-a-control-on-a-different-page/m-p/8220#M54</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two pages in a form I use to update attributes - I want to update a control on a page based on a value being changed on a different page.&amp;nbsp; I can update control values on the same page but it doesn't seem to work when trying to change the value of a control box located on another page even though I am hard coding the pathname? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is it in it's simplest form(this doesn't work by the way). The second line works as the control is on that page the and is run when a user changes the value using the onselchange event the first line doesnt as this control is on a different page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please shed some light??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub SiteID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;application.map.editlayer.forms("EDITFORM").pages("General").controls("g_si_tx").value = "Test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;application.map.editlayer.forms("EDITFORM").pages("TL").controls("ob_l_tx").value = "Test1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 00:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/setiing-the-value-of-a-control-on-a-different-page/m-p/8220#M54</guid>
      <dc:creator>RichardGlass</dc:creator>
      <dc:date>2012-12-05T00:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setiing the value of a control on a different page but in the same edit form</title>
      <link>https://community.esri.com/t5/arcpad-questions/setiing-the-value-of-a-control-on-a-different-page/m-p/8221#M55</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Richard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could change the second line to Application.UserProperties("Test1Value") = "Test1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And then when you activate the page make the control = Application.UserProperties("Test1Value")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And if you don't want to physically go to that page you can invoke it automatically using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;application.map.editlayer.forms("EDITFORM").pages("TL").acvtivate
...
&lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;controls("ob_l_tx").value =&lt;/SPAN&gt; Application.UserProperties("Test1Value")
...
&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;application.map.editlayer.forms("EDITFORM").pages("&lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;g_si_tx&lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;").acvtivate&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know how you go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gareth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/setiing-the-value-of-a-control-on-a-different-page/m-p/8221#M55</guid>
      <dc:creator>GarethWalters</dc:creator>
      <dc:date>2021-12-10T20:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setiing the value of a control on a different page but in the same edit form</title>
      <link>https://community.esri.com/t5/arcpad-questions/setiing-the-value-of-a-control-on-a-different-page/m-p/8222#M56</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI - this works sets the variable globally(well I think) but how do I access this variable after I have captured a point by pressing the OK button, I am trying to retrieve the SiteID value on another form. It is initially captured on the General form and I would like to attach it to a the same field on the " true left" form without having to type the siteID in repeatedly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sub siteID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GlobalVariable = application.map.editlayer.forms("EDITFORM").pages("General").controls("g_si_tx").value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.MessageBox GlobalVariable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.UserProperties("SiteName") = GlobalVariable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 17:45:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/setiing-the-value-of-a-control-on-a-different-page/m-p/8222#M56</guid>
      <dc:creator>RichardGlass</dc:creator>
      <dc:date>2012-12-20T17:45:16Z</dc:date>
    </item>
  </channel>
</rss>

