Tag Info

New answers tagged

2

i have used below code for multichoice and choice site columns. string choiceFieldListOfValues = "A;B;C"; string[] optionSetArray = choiceFieldListOfValues.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); StringBuilder choiceFieldGenericShema = new StringBuilder(); if (spColumnType == ...


1

One of the easiest ways to know the XML of a filed is to create the field from UI first, then use a tool like SharePoint Manager, to check the Xml Schema of the field. The issue in your Choice field is that, you haven't defined any choice options and second you have defined a property named Status which I don't think is a valid property. Here is a sample xml ...


0

So say you have a list called Documents. It has two columns called 'One' and 'Two'. You make your Linq to SP queries just fine: DataContext dc = new DataContext("http://sharepoint"); var varResults = (from item in dc.Documents where item.Two == "blah" orderby item.One descending select item); Then you ...



Top 50 recent answers are included