title: Sharepoint batch for MultiChoice field value insertion
body: <p>So i have a problem regarding usage of sharepoint list webservices.</p>
  
  <p>I need to get the syntax right for Sharepoint batch script for insertion of new items.
  Everyhing works fine except multichoice field type.</p>
  
  <p>I insert the data, but nomatter how i do it, it shows up on SP list item details OK, but when trying to edit item in SP, i see, that SP have taken the value i sent to this field as text string, and does not check the items i have saved as selected.</p>
  
  <p>The script for now is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Batch OnError="Return"&gt;
  &lt;Method ID='1' Cmd='New'&gt;
  &lt;Field Name='SecurityCheckpoints'&gt;1st checkpoint;2nd checkpoint&lt;/Field&gt;
  &lt;/Method&gt;
  &lt;/Batch&gt;
  </code></pre>
  
  <p>Definition for that field is like this:</p>
  
  <pre><code>  &lt;Field Type="MultiChoice" 
           DisplayName="Checkpoints allowed" 
           Required="TRUE" 
           FillInChoice="FALSE" 
           ID="{guid-guid-guid-guid-guid}" 
           SourceID="{guid-guid-guid-guid-guid}" 
           StaticName="SecurityCheckpoints" 
           Name="SecurityCheckpoints" 
           ColName="ntext2" 
           RowOrdinal="0" 
           Version="4"&gt;
            &lt;CHOICES&gt;
              &lt;CHOICE&gt;1st checkpoint&lt;/CHOICE&gt;
              &lt;CHOICE&gt;2nd checkpoint&lt;/CHOICE&gt;
              &lt;CHOICE&gt;3rd checkpoint&lt;/CHOICE&gt;
            &lt;/CHOICES&gt;
            &lt;Default&gt;1st checkpoint&lt;/Default&gt;
          &lt;/Field&gt;
  </code></pre>
  
  <p>I have to implement something like custom UI for sharepoint in different-purpouse silverlight app, and so i am using my own webservice to be a proxy between SP and SL, i retrieve SP list definition and dinamicaly build UI controls, so user can fill in the forms.  </p>
  
  <p><strong>How do i form the script, so items are selected(ticked) in the SP instead of SP saving them as just string value?</strong></p>
  
  <p><strong>If I use script with only one item ("1st checkpoint"), SP processes it ok, it there is many, data is saved as text string?</strong></p>
  
  <p><strong>What i am doing wrong? How do i correctly seperate multiple values?</strong></p>
  
  <p>I have searched high and low, but have not found example of SP update script, where multichoice sample is included.</p>
  
  <p>Thank You in advance!</p>