<?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: Populating an Edit Form with Easting &amp;amp; Northing Coords in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51086#M382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This worked perfectly - thanks!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart Cassin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 22:37:52 GMT</pubDate>
    <dc:creator>stuartcassin</dc:creator>
    <dc:date>2010-10-19T22:37:52Z</dc:date>
    <item>
      <title>Populating an Edit Form with Easting &amp;amp; Northing Coords</title>
      <link>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51081#M377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As a dedicated non scripter, I'm trying to create an editform that automatically populates an easting and northing control on the form. I know that vb scripts are easily created to do that using the "updateformfromshape" call, but I have no idea where or how to start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone supply the code or at least point me in the right direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart Cassin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 23:24:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51081#M377</guid>
      <dc:creator>stuartcassin</dc:creator>
      <dc:date>2010-09-16T23:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Populating an Edit Form with Easting &amp; Northing Coords</title>
      <link>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51082#M378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you do a search in the "customizing arcpad" help for "Project Example", it'll be the eigth one down the list. It's basically an example script on how to project from one coordinate system to another, which is a pretty good place to start. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if your map is in the coordinate system whose easting and northing you want to retrieve, you could just pull those values from the feature itself like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim objSH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set objSH = Application.Map.Editlayer.Records.Fields.Shape 'Sets the objSH variable to the currently being edited feature's "shape" which contains the X / Y coords.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EditForm.Pages("thePage").Controls("theEastingComboBox").value = objSH.X&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EditForm.Pages("thePage").Controls("theNorthingComboBox").value = objSH.Y&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could put the above (modified to suit your project of course) in the onload event of your editform I think. If that doesn't work (which might be the case because the feature hasn't been saved yet, and therefore has no "shape" to reference until OK is hit, I don't remember), then try and just use Map.PointerX and Map.PointerY to get a reference to the current location. They'll be set to the current feature's location if you just used the "create point at GPS location" button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I have no idea how this would work for features that get thier position via averaging or post-processing. Might be easier to just calculate them after the fact in ArcMap unless the field crew really needs to see the exact values.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 20:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51082#M378</guid>
      <dc:creator>EricHajek1</dc:creator>
      <dc:date>2010-09-20T20:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Populating an Edit Form with Easting &amp; Northing Coords</title>
      <link>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51083#M379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the feedback Eric,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately it didn't work and I don't know how to use Map.PointerX / Map.PointerY. As I said, complete novice in scripting so I'm really at a loss as to how to get this going.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart Cassin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 01:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51083#M379</guid>
      <dc:creator>stuartcassin</dc:creator>
      <dc:date>2010-10-07T01:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Populating an Edit Form with Easting &amp; Northing Coords</title>
      <link>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51084#M380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Back again. Still trying to get these X Y coord fields populated using Map.Pointer X/Y and really struggling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd really appreciate anyone who could give me some PLAIN ENGLISH instructions on how to achieve this or a sample code. All I'm trying to do is put the X &amp;amp; Y coords of where the screen has been touched into an edit form.&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;Stuart Cassin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 04:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51084#M380</guid>
      <dc:creator>stuartcassin</dc:creator>
      <dc:date>2010-10-18T04:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Populating an Edit Form with Easting &amp; Northing Coords</title>
      <link>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51085#M381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Back again. Still trying to get these X Y coord fields populated using Map.Pointer X/Y and really struggling.&lt;BR /&gt;&lt;BR /&gt;I'd really appreciate anyone who could give me some PLAIN ENGLISH instructions on how to achieve this or a sample code. All I'm trying to do is put the X &amp;amp; Y coords of where the screen has been touched into an edit form.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Stuart Cassin&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Stuart,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the following and no further code is required.&amp;nbsp; It also puts the easting and northing into the shapefile fields with the same name (long integer / double / etc).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following is part of the ArcPad form (.apl file) for your shapefile being edited.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="txtEasting" x="1" y="86" width="40" height="12" defaultvalue="Map.PointerX" tooltip="" tabstop="true" border="true" field="EASTING"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;EDIT name="txtNorthing" x="42" y="86" width="40" height="12" defaultvalue="Map.PointerY" tooltip="" tabstop="true" border="true" field="NORTHING"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael Kraus.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 11:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51085#M381</guid>
      <dc:creator>MichaelKraus</dc:creator>
      <dc:date>2010-10-19T11:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Populating an Edit Form with Easting &amp; Northing Coords</title>
      <link>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51086#M382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This worked perfectly - thanks!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart Cassin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 22:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/populating-an-edit-form-with-easting-amp-amp/m-p/51086#M382</guid>
      <dc:creator>stuartcassin</dc:creator>
      <dc:date>2010-10-19T22:37:52Z</dc:date>
    </item>
  </channel>
</rss>

