Inserting item into multi select field
-
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.
-
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.
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.
-
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.
I'm just using the standard splistitem and calling it's update method to add the info from the form to the list.
-
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.
So, I found the SPFieldMultiChoiceValue, but how do I insert the entry for 'Other'? Do I just used the Add method?
-
So, I found the SPFieldMultiChoiceValue, but how do I insert the entry for 'Other'? Do I just used the Add method?
Yes, just use add methode. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldmultichoicevalue.aspx[^]
-
Yes, just use add methode. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldmultichoicevalue.aspx[^]
I'll try that. Thanks.