<?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 Writing multiple values to a single field? in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/writing-multiple-values-to-a-single-field/m-p/281943#M2045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a need to create an ArcPad form with the ability to write multiple values to a single field, probably using radio buttons.&amp;nbsp; i.e.: I have a field called [DEFECT] and I need the user to be able to check ONE OR MORE of the following values and have them written to the field, delimited by commas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Defect Code Definition of Defect Code
D Decay
CR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Crack
Root Root Problems 
RSG&amp;nbsp; Stem Girdling
RS Severed 
RPD Planting Depth (too deep)
RGC Grade Change
RSB&amp;nbsp;&amp;nbsp; Sidewalk Buckling 
WBU Weak Branch Union
CA Canker
PTA Poor Tree Architecture
PTA:LT&amp;nbsp; Leaning Tree
PTA:TT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Topped Tree
EE&amp;nbsp;&amp;nbsp;&amp;nbsp; Excessive Epicormics
DEAD DEAD tree, tops or branches 
VO Visible Obstruction
PO&amp;nbsp;&amp;nbsp;&amp;nbsp; Physical Obstruction&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know how to do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 13:31:27 GMT</pubDate>
    <dc:creator>StaceMaples</dc:creator>
    <dc:date>2014-03-24T13:31:27Z</dc:date>
    <item>
      <title>Writing multiple values to a single field?</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-multiple-values-to-a-single-field/m-p/281943#M2045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a need to create an ArcPad form with the ability to write multiple values to a single field, probably using radio buttons.&amp;nbsp; i.e.: I have a field called [DEFECT] and I need the user to be able to check ONE OR MORE of the following values and have them written to the field, delimited by commas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Defect Code Definition of Defect Code
D Decay
CR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Crack
Root Root Problems 
RSG&amp;nbsp; Stem Girdling
RS Severed 
RPD Planting Depth (too deep)
RGC Grade Change
RSB&amp;nbsp;&amp;nbsp; Sidewalk Buckling 
WBU Weak Branch Union
CA Canker
PTA Poor Tree Architecture
PTA:LT&amp;nbsp; Leaning Tree
PTA:TT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Topped Tree
EE&amp;nbsp;&amp;nbsp;&amp;nbsp; Excessive Epicormics
DEAD DEAD tree, tops or branches 
VO Visible Obstruction
PO&amp;nbsp;&amp;nbsp;&amp;nbsp; Physical Obstruction&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know how to do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 13:31:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-multiple-values-to-a-single-field/m-p/281943#M2045</guid>
      <dc:creator>StaceMaples</dc:creator>
      <dc:date>2014-03-24T13:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Writing multiple values to a single field?</title>
      <link>https://community.esri.com/t5/arcpad-questions/writing-multiple-values-to-a-single-field/m-p/281944#M2046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have just had to do a similar job.&amp;nbsp; If you haven't worked out your solution, post here again please, and I'll post the details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the record and without the code, I have set up a separate general form which has a checkbox for each value (these are all defined).&amp;nbsp; This form is an object of the layer in question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On that layer's EDITFORM, I set up a button control and an edit control. The button is used to fire up this separate form and set/get the multiple values.&amp;nbsp; The edit control just displays the multiple values encoded as one item, and I mark it readonly in the control's design, and associate it with the right field of the layer.&amp;nbsp; Via the button's onclick event, I call a subroutine which sets up references to the general form's controls, and to the selected layer and the selected record.&amp;nbsp; The last action of this subroutine &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is to show the general form.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This fires the general form's "onload" event which calls another subroutine, which retrieves the attribute value I want, decodes it, and sets the values for the checkboxes of the general form. This form is automatically re-displayed with the checkboxes properly set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To retrieve the new values from the general form, I call another function on the general form's "onok" event.&amp;nbsp; This just gets the values of all the checkboxes, and encodes them into a single value.&amp;nbsp; I then assign this value to the edit control's value with (effectively)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Map.SelectionLayer.Forms("EDITFORM").Pages("PAGE1").Controls("Edit1").Value = &amp;lt;my value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is all horribly convoluted.&amp;nbsp; I had hoped to use just a button control in the EDITFORM, but I could not work out how to save the changed value.&amp;nbsp; The command "Map.SelectionLayer.Update" in the general form would not save the value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also thought of just using an edit control, where I fired up the general form via the edit control's "onchange" event.&amp;nbsp; Unfortunately, although I could get my general form to display and work, when I closed it, the value in the edit control changed again, firing up the general form yet again - I could not see how to work around this double display.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 04:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/writing-multiple-values-to-a-single-field/m-p/281944#M2046</guid>
      <dc:creator>RichardRoger</dc:creator>
      <dc:date>2014-04-08T04:17:43Z</dc:date>
    </item>
  </channel>
</rss>

