Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Inserting item into multi select field

Inserting item into multi select field

Scheduled Pinned Locked Moved SharePoint
question
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aptiva Dave
    wrote on last edited by
    #1

    I have a field in a list that allows for multiple selection and I have built an app page to allow users to input stuff to this list. Question is how do I insert the multiple selections into this list field? I'm using a checkboxlist object on the page, if that helps and the list also allows for users to insert their own "other" value.

    A 1 Reply Last reply
    0
    • A Aptiva Dave

      I have a field in a list that allows for multiple selection and I have built an app page to allow users to input stuff to this list. Question is how do I insert the multiple selections into this list field? I'm using a checkboxlist object on the page, if that helps and the list also allows for users to insert their own "other" value.

      A Offline
      A Offline
      Andrija Juric
      wrote on last edited by
      #2

      I use LINQ to Sharepoint. Mapped Column type is EntitySet and all you have to do is : 1. create context 2. fetch referenced item 3. call Column.Add(referencedItem) 4. context.SubmitChanges It works for me, but I'm not sure if you used LINQ.

      A 2 Replies Last reply
      0
      • A Andrija Juric

        I use LINQ to Sharepoint. Mapped Column type is EntitySet and all you have to do is : 1. create context 2. fetch referenced item 3. call Column.Add(referencedItem) 4. context.SubmitChanges It works for me, but I'm not sure if you used LINQ.

        A Offline
        A Offline
        Aptiva Dave
        wrote on last edited by
        #3

        I'm just using the standard splistitem and calling it's update method to add the info from the form to the list.

        1 Reply Last reply
        0
        • A Andrija Juric

          I use LINQ to Sharepoint. Mapped Column type is EntitySet and all you have to do is : 1. create context 2. fetch referenced item 3. call Column.Add(referencedItem) 4. context.SubmitChanges It works for me, but I'm not sure if you used LINQ.

          A Offline
          A Offline
          Aptiva Dave
          wrote on last edited by
          #4

          So, I found the SPFieldMultiChoiceValue, but how do I insert the entry for 'Other'? Do I just used the Add method?

          A 1 Reply Last reply
          0
          • A Aptiva Dave

            So, I found the SPFieldMultiChoiceValue, but how do I insert the entry for 'Other'? Do I just used the Add method?

            A Offline
            A Offline
            Andrija Juric
            wrote on last edited by
            #5

            Yes, just use add methode. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldmultichoicevalue.aspx[^]

            A 1 Reply Last reply
            0
            • A Andrija Juric

              Yes, just use add methode. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldmultichoicevalue.aspx[^]

              A Offline
              A Offline
              Aptiva Dave
              wrote on last edited by
              #6

              I'll try that. Thanks.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups