Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8938291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:35:29+00:00 2026-06-15T10:35:29+00:00

So i have a problem regarding usage of sharepoint list webservices. I need to

  • 0

So i have a problem regarding usage of sharepoint list webservices.

I need to get the syntax right for Sharepoint batch script for insertion of new items.
Everyhing works fine except multichoice field type.

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.

The script for now is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<Batch OnError="Return">
<Method ID='1' Cmd='New'>
<Field Name='SecurityCheckpoints'>1st checkpoint;2nd checkpoint</Field>
</Method>
</Batch>

Definition for that field is like this:

  <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">
          <CHOICES>
            <CHOICE>1st checkpoint</CHOICE>
            <CHOICE>2nd checkpoint</CHOICE>
            <CHOICE>3rd checkpoint</CHOICE>
          </CHOICES>
          <Default>1st checkpoint</Default>
        </Field>

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.

How do i form the script, so items are selected(ticked) in the SP instead of SP saving them as just string value?

If I use script with only one item (“1st checkpoint”), SP processes it ok, it there is many, data is saved as text string?

What i am doing wrong? How do i correctly seperate multiple values?

I have searched high and low, but have not found example of SP update script, where multichoice sample is included.

Thank You in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:35:30+00:00Added an answer on June 15, 2026 at 10:35 am

    I found the sollution – it was too easy:

    instead of seperating the choice values using semicolon “;”, they had to be seperated using “;#”, and putting it in front and in behind the whole list.

    So rather than using this:
    1st checkpoint;2nd checkpoint

    <?xml version="1.0" encoding="UTF-8"?>
    <Batch OnError="Return">
    <Method ID='1' Cmd='New'>
    <Field Name='SecurityCheckpoints'>1st checkpoint;2nd checkpoint</Field>
    </Method>
    </Batch>
    

    It had to be done like this:
    ;#1st checkpoint;#2nd checkpoint;#

    <?xml version="1.0" encoding="UTF-8"?>
    <Batch OnError="Return">
    <Method ID='1' Cmd='New'>
    <Field Name='SecurityCheckpoints'>;#1st checkpoint;#2nd checkpoint;#</Field>
    </Method>
    </Batch>
    

    PS:I dont know was it correct way to do this, but I answered my own question. Just for others to know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Description: I have a problem regarding DataGridView . I need to show a Client_Name
I am new to jQueryMobile. I have one problem regarding fixed headers. I have
I have a problem regarding StartUp Url in WPF. I have a LoginView.xaml and
I have a problem regarding the datediff MYSQL function, I can use it and
I have a problem regarding the ksoap2. My problem is that the project used
I have a problem regarding Android App. I have created an application that download
I have the following code, and i have a problem regarding changing the ringtone
Good day everyone! I have a problem regarding my date. It needs to be
I have a simple problem regarding a loop in a Rails controller. Here's the
I have a cross-language problem regarding md5 :). I have this code in Java:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.