Posts

Showing posts from February 23, 2015

get people or group value into single array of single item

string [] delimit = new string [] { ";#" };                                                         string [] stringarray = item[ "TargetAudience" ].ToString().Split((delimit), StringSplitOptions .RemoveEmptyEntries);                             StringBuilder sb = new StringBuilder ();                             for ( int i = 0; i < stringarray.Length; i++)                             {                                 if (i % 2 != 0)                                 {                                     sb.Append(stringarray[i].ToString()+ "," );                                 }                             }

Caluclated column to get Current year form Created by column

=IF([Created]="","",""&YEAR([Created])) Caluclated colum dosent support Clauclated type better type of the clauctaed colum is text < Where > < Contains > < FieldRef Name = 'FullName' /> < Value Type = 'Calculated' >Rafael</ Value > </ Contains > </ Where > < Where > This is correct < Contains > < FieldRef Name = 'FullName' /> < Value Type = 'Text' >Rafael</ Value > </ Contains > </ Where >