Tuesday, August 19, 2008

Programmatically adding items to Sharepoint Choice Field

This has just caused me a bit of hassle, and it wasn't very easy to find a solution.  Sharepoint seems to store choice columns in this format:

 

";#Choice 1;#Choice 2;#"

 

The one thing that is crucial to remember is that the list has to start and end with ";#".

 

I missed out the last "#" and it failed to recognise the list.

0 Responses: