Tag Info

New answers tagged


Query should be like below <OrderBy> <FieldRef Name="Modified" Ascending="FALSE"></FieldRef> </OrderBy> <Where> <Eq> <FieldRef Name="Author"/> <Value Type="User">Display Name</Value> </Eq> </Where> Make sure you are using Display Name and not Domain User Name ...


Declarations var nextPagingInfo; var previousPagingInfo; var position; Initial call you can make position null, so it starts from the begining position = null; //...CAML Query etc context.load(spItems); Now you can invoke the Query using executeQueryAsync. And use below onSuccess function onSuccess() { var listEnumerator = ...


The easiest way to get a string for conversion is to use SPListItem. the item.GetFormattedValue("ColumnName") Go though the mentioned post, it could be work for you. How to convert a decimal number field to C#


This is how SharePoint stores the data internally. You need to use String manipulation for extracting the data. var data = "float;#22.0000000000000"; //Option 1 - Replace float;# with empty string string result = data.Replace("float;#", string.Empty); //Now convert to decimal decimal d = decimal.Parse(result); //Option 2 - Using index of # string result = ...


I should say the problem is that your query is malformed. I will take a guess that you are using SSOM (C# in a .wsp)? If so you should rewrite your query like this: SPQuery myQuery = new SPQuery{ Query = @"<Where> <Eq> <FieldRef Name='FSObjType' /> <Value ...


You can use a usefull tool called CAML Builder, really helping :) : http://www.u2u.be/Software

Top 50 recent answers are included