<?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: closing EditForm dynamically in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577969#M4197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; By naming your subroutine "Editform_OnUnLoad()" it should trigger automatically.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what fixed my problem. Overriding the OnUnload event allows me to dispose the form properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for all your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 14:06:27 GMT</pubDate>
    <dc:creator>SandraDema</dc:creator>
    <dc:date>2012-05-03T14:06:27Z</dc:date>
    <item>
      <title>closing EditForm dynamically</title>
      <link>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577963#M4191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to close the built-in EditForm dynamically. I want the user to see the form, click a button, causing the Editform to close, and a custom form to open. The following is the code I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; dim aForm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set aForm = Application.Map.layers("Parcels").Forms("EditForm")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; aForm.close&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set aForm = Application.Map.Layers("Parcels").Forms("Form3")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; aForm.show&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If, for example, I use this code for Form2 and Form3:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; dim aForm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set aForm = Application.Map.layers("Parcels").Forms("Form2")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; aForm.close&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set aForm = Application.Map.Layers("Parcels").Forms("Form3")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; aForm.show&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it works perfectly. It only "kinda" works for the EditForm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I select parcel "A" and then click the button I have placed on the EditForm, it calls the correct subroutine and the form will close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, when I click on parcel "B", the EditForm opens showing the information for parcel A, not parcel B. The form is now unresponsive, though I can continue to click on the map. The only way to close the form is to close the program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have spent several hours searching forums and the web for a solution and have had no luck.&amp;nbsp; Has anyone had any success with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else experienced this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 19:01:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577963#M4191</guid>
      <dc:creator>SandraDema</dc:creator>
      <dc:date>2012-05-02T19:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: closing EditForm dynamically</title>
      <link>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577964#M4192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One way of doing this is to open the second form from the onunload event of the first form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/53633-Prevent-OK-Button-from-Closing-Form"&gt;http://forums.arcgis.com/threads/53633-Prevent-OK-Button-from-Closing-Form&lt;/A&gt;&lt;SPAN&gt; for some ideas.&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, 03 May 2012 05:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577964#M4192</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2012-05-03T05:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: closing EditForm dynamically</title>
      <link>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577965#M4193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much for the reply. Opening Form3 is not a problem. The code I am using is fired by the OnClick event of a button I have placed on EditForm. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done further testing with the OnUnload event of the form and the OnValidate event of the page for EditForm. Neither of these are being called when EditForm is closed by using aForm.close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there is different syntax necessary to close a built-in form?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 12:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577965#M4193</guid>
      <dc:creator>SandraDema</dc:creator>
      <dc:date>2012-05-03T12:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: closing EditForm dynamically</title>
      <link>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577966#M4194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you zip your layer file (.apl) and associated .vbs file and post it?&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, 03 May 2012 12:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577966#M4194</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2012-05-03T12:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: closing EditForm dynamically</title>
      <link>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577967#M4195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for looking&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 13:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577967#M4195</guid>
      <dc:creator>SandraDema</dc:creator>
      <dc:date>2012-05-03T13:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: closing EditForm dynamically</title>
      <link>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577968#M4196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Modify your .vbs according to this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function BeginEdit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dim aForm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; set aForm = Application.Map.layers("Parcels").Forms("EditForm")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; aForm.close&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub Editform_OnUnLoad()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dim aForm &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; set aForm = Application.Map.Layers("Parcels").Forms("Form3")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; aForm.show&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And remove onunload="Call OpenForm3" statement in your apl. By naming your subroutine "Editform_OnUnLoad()" it should trigger automatically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 13:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577968#M4196</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2012-05-03T13:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: closing EditForm dynamically</title>
      <link>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577969#M4197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; By naming your subroutine "Editform_OnUnLoad()" it should trigger automatically.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what fixed my problem. Overriding the OnUnload event allows me to dispose the form properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for all your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 14:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/closing-editform-dynamically/m-p/577969#M4197</guid>
      <dc:creator>SandraDema</dc:creator>
      <dc:date>2012-05-03T14:06:27Z</dc:date>
    </item>
  </channel>
</rss>

