<?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 Custom Toolbar - Listing Editable Layers in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162297#M1145</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 would like to create a toolbar with an "Add Feature" button that would follow a work flow like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Click Add Feature button that would be like an Add Point from GPS type button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. This brings up a listing of all editable layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Choose layer you are adding point to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. This calls up the layers Edit Form for adding attributes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is that this would be an Applet with a script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does someone have the script for something like this? Or some code to start?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2012 22:44:59 GMT</pubDate>
    <dc:creator>JoelCrawford</dc:creator>
    <dc:date>2012-03-22T22:44:59Z</dc:date>
    <item>
      <title>ArcPad Custom Toolbar - Listing Editable Layers</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162297#M1145</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 would like to create a toolbar with an "Add Feature" button that would follow a work flow like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Click Add Feature button that would be like an Add Point from GPS type button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. This brings up a listing of all editable layers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Choose layer you are adding point to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. This calls up the layers Edit Form for adding attributes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is that this would be an Applet with a script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does someone have the script for something like this? Or some code to start?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 22:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162297#M1145</guid>
      <dc:creator>JoelCrawford</dc:creator>
      <dc:date>2012-03-22T22:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad Custom Toolbar - Listing Editable Layers</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162298#M1146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest that you create an applet with a toolbar, tool and a form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the form put a listbox or a combobox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the onClick event of the button SHOW the form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the PageSetActive event run your script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim n, layerCount, myControl&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;n = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set layerCount = Map.Layers.Count&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myControl = Application.Applets("yourApplet").Forms("FORM1").Pages("PAGE1").Controls("JoelsControl")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While n &amp;lt;= layerCount&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myControl.AddItem Map.Layers(n).name, Map.Layers(n).name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; n = n + 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wend&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you are working only with points:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the PageValidate event make sure you are selecting a value from the control and set editLayer = myControl.value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On the form ok event make map.layers(editLayer).editable = true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See how that goes and let me know where you get to.&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>Thu, 29 Mar 2012 23:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162298#M1146</guid>
      <dc:creator>GarethWalters</dc:creator>
      <dc:date>2012-03-29T23:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad Custom Toolbar - Listing Editable Layers</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162299#M1147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe I am missing something but is this not default functionality?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the Edit Toolbar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Click the Start/Stop Editing tool which brings up the editable layers in your map as a drop down list&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Select the layer unless it is already selected&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Add the feature using GPS or by clicking in the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Edit form pops up to be filled in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember to set the readonly attribute to true in the .apl for the layers you don't want to edit as in the example below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;LAYER name="Forest" transparency="0.8" identify="true" edit="false" quickcapture="false" quickdraw="1" readonly="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 04:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162299#M1147</guid>
      <dc:creator>RolfBroch</dc:creator>
      <dc:date>2012-03-30T04:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad Custom Toolbar - Listing Editable Layers</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162300#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Gareth, I ended up going with a different workflow, but thanks for this code - the loop and additem to control was perfect!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess this thread is closed but I now have a new and scary issue with Low Memory!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/55203-LOW-MEMORY-Issue-arises-as-features-collected"&gt;http://forums.arcgis.com/threads/55203-LOW-MEMORY-Issue-arises-as-features-collected&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 17:20:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162300#M1148</guid>
      <dc:creator>JoelCrawford</dc:creator>
      <dc:date>2012-04-13T17:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPad Custom Toolbar - Listing Editable Layers</title>
      <link>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162301#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sounds a lot like my issue, as it happens with AXF and not SHP....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/45432-Arc-Pad-10-Virtual-memory?p=189851#post189851"&gt;http://forums.arcgis.com/threads/45432-Arc-Pad-10-Virtual-memory?p=189851#post189851&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 22:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/arcpad-custom-toolbar-listing-editable-layers/m-p/162301#M1149</guid>
      <dc:creator>JoelCrawford</dc:creator>
      <dc:date>2012-04-13T22:38:12Z</dc:date>
    </item>
  </channel>
</rss>

