<?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: Multiple Combo Boxes writing to one field in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492188#M3581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Klas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my problem is not getting the list boxes to populate but getting the shapefile attribute table to populate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because there are several combo boxes, all linking to one attribute field but only one combo box ever has a value at any given time, I suspect maybe the blank combo boxes are returning the final value to the attriute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have set all the non-visible combo boxes to Enabled=fasle but I still cant return a value from the enabled combo box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that makes sense...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Jul 2010 21:39:55 GMT</pubDate>
    <dc:creator>SteveH</dc:creator>
    <dc:date>2010-07-25T21:39:55Z</dc:date>
    <item>
      <title>Multiple Combo Boxes writing to one field</title>
      <link>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492186#M3579</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;SPAN&gt;I am building a form in AP 8 where I have multiple combo boxes hosting .dbf drop-down lists, all set to write to the same attribue field. The visibility of each combo box is determined by a series of radio buttons so that only one combo box at any time will be able to return a value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However I can't get the attribute table to populate. Do I have to de-activate the invisible combo boxes or set the visible one to active or something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know any scripts to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 03:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492186#M3579</guid>
      <dc:creator>SteveH</dc:creator>
      <dc:date>2010-07-23T03:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Combo Boxes writing to one field</title>
      <link>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492187#M3580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stephen&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created something a while ago in 7.0.1 that worked...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I called a sub-routine on the APPLICATION onstartup EVENT. In this sub I populated all my comboboxes (or in my case listboxes) from a single dbf file with the command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim myVariable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set myVariable = Forms("FormName").Pages("PAGE1").Controls("ComboName")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myVariable.AddItemsFromTable "C:\configfile.dbf", "VALUE" , "TEXT"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope You can use this...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 18:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492187#M3580</guid>
      <dc:creator>KlasKarlsson</dc:creator>
      <dc:date>2010-07-23T18:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Combo Boxes writing to one field</title>
      <link>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492188#M3581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Klas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my problem is not getting the list boxes to populate but getting the shapefile attribute table to populate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because there are several combo boxes, all linking to one attribute field but only one combo box ever has a value at any given time, I suspect maybe the blank combo boxes are returning the final value to the attriute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have set all the non-visible combo boxes to Enabled=fasle but I still cant return a value from the enabled combo box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that makes sense...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jul 2010 21:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492188#M3581</guid>
      <dc:creator>SteveH</dc:creator>
      <dc:date>2010-07-25T21:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Combo Boxes writing to one field</title>
      <link>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492189#M3582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stephen, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a similar form sometime back, where the subtype of a feature class was selected on one page, which changed the available options for the comboboxes on other pages and had multiple comboboxes tied to one attribute. The only work around I ever found for the same problem (not saving anything) was to populate the combo boxes' options with an SQL query (it was an AXF) and not have any of the comboboxes tied to the attribute itself. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to then add code to save the attribute manually during the form "unload" event. Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Determine which combobox you want to save based on blankness&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Get a reference to the fields&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;field.value = combobox.value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nothing too fancy, but still a hassle when it seems like this (if the user has multiple comboboxes tied to the same attribute, use the value of the populated one) should be part of ArcPad's logic. &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 13:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492189#M3582</guid>
      <dc:creator>EricHajek1</dc:creator>
      <dc:date>2010-07-27T13:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Combo Boxes writing to one field</title>
      <link>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492190#M3583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Eric&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the end I made a work around by removing the radio buttons and instead have interdependant combo boxes where the second combo box populates with a list dependant on the selection made in the first combo box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Works out almost as well in this case&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;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 00:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492190#M3583</guid>
      <dc:creator>SteveH</dc:creator>
      <dc:date>2010-07-28T00:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Combo Boxes writing to one field</title>
      <link>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492191#M3584</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;So what you have is a combobox with say...trees,shrubs,grasses and when select 'trees, the second combobox only loads up with tree species??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 16:16:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492191#M3584</guid>
      <dc:creator>markfarina</dc:creator>
      <dc:date>2010-11-05T16:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Combo Boxes writing to one field</title>
      <link>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492192#M3585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;So what you have is a combobox with say...trees,shrubs,grasses and when select 'trees, the second combobox only loads up with tree species??&lt;BR /&gt;&lt;BR /&gt;Mark&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Precisely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And before you ask the code is below. In this case item chosen from a dbf list linked to "cmbActn" will populate the combobox "cmbWrkMthd"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sub SelectList 'sub to select specific entires from a dbf file for inclusion in dropdown menu on form, based on previous choice&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim pLayer, pAction, pWorkMethod, filepath, GetPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set pLayer = Application.map.selectionLayer.Forms("EDITFORM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; pAction = pLayer.Pages("PAGE3").Controls("cmbActn").value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; set pWorkMethod=pLayer.Pages("PAGE3").Controls("cmbWrkMthd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if pWorkMethod.ListCount &amp;gt; 0 then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pWorkMethod.Clear&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GetPath = Left(application.map.selectionlayer.FilePath, InStrRev(application.map.selectionlayer.FilePath, "\"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; if pAction &amp;lt;&amp;gt; "" then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; filePath = GetPath &amp;amp; "WorkMethod.dbf"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pWorkMethod.AddItemsFromTable filePath, "Method", "Method", "[ACTION] = """&amp;amp; pAction &amp;amp; """"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;end sub 'SelectList&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the dbf for the second combobox (in this case WorkMethod.dbf) must look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACTION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; METHODTXT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Weed Control Spray - Chemical&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Weed Control Spray - Rust&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Weed Control Hand Removal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Weed Control Other (Please Type)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fencing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Standard Fence&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fencing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Other (Please Type)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Revegetation Reveg with Indigenous Vegetation &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Revegetation Other Reveg (Plse Type) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope that helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve H&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 01:29:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/multiple-combo-boxes-writing-to-one-field/m-p/492192#M3585</guid>
      <dc:creator>SteveH</dc:creator>
      <dc:date>2010-11-08T01:29:25Z</dc:date>
    </item>
  </channel>
</rss>

