Tag Info

New answers tagged

1

Don't add View Tag, reform the query as follows: CAMLQuery = "<Query><OrderBy><FieldRef Name='Fiscal_x0020_Year' Ascending='TRUE' /></OrderBy></Query>"


1

Perhaps its the default RowLimit that is causing you to not retrieve all results? A RowLimit of 0 will return all results. For example: "<View><Query><OrderBy><FieldRef Name=\"Fiscal_x0020_Year\" Ascending=\"TRUE\"></FieldRef></OrderBy></Query><RowLimit>0</RowLimit></View>" Also, the following ...


1

Try adding a null check: CAMLQuery = "<Query><Where><IsNotNull><FieldRef Name='Fiscal_x0020_Year' /></IsNotNull></Where><OrderBy><FieldRef Name='Fiscal_x0020_Year' Ascending='True' /></OrderBy></Query>"


1

You can use $().SPServices.SPCascadeDropdowns More info: http://spservices.codeplex.com/wikipage?title=%24%28%29.SPServices.SPCascadeDropdowns var sCamlQuery = ""; // Cascade definition for State dropdown $().SPServices.SPCascadeDropdowns({ relationshipList: "States", relationshipListParentColumn: "Region", relationshipListChildColumn: ...


4

When using you want to use the Offset=""(or according to the comments on MSDN attribute should be OffsetDays="") on the Element <View> <Query> <Where> <Eq> <FieldRef Name="EventDate" /> <Value Type="DateTime"><Today OffsetDays="+1"/></Value> ...


0

It really depends on the situation. Sure, conventional wisdom says never query in SQL. Yet this is counter to all the logic in non-SharePoint solutions. It is especially relevant with large datasets. If you take care of business in SQL, you end up with less data to send across the wire. Of course that's fastest. It is especially relevant for none SharePoint ...


2

Try the fallowing code. SPListItemCollection items = spList.GetItems(spquery); repeaterControl.DataSource = items.GetDataTable(); repeaterControl.DataBind();


1

And, I got it: The ListTemplate element's Type attribute value was causing the issue. The documentation states: Keep in mind that Microsoft Corporation products that are built on SharePoint Foundation, such as Microsoft SharePoint Server, can and do define additional list types. Also, Microsoft SharePoint Foundation farms where your solution is ...


2

Yes you can, but you will have to load the list item collection seperately like below and call executequery once. clientContext.load(collListItem); clientContext.load(collListItem1);


0

Use following : var count = this.collListItem.get_count();


1

Try wrap in "<View><Query> ... </Query></View>" var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="IsActive"/><Value Type="Integer">1</Value></Eq></Where><OrderBy><FieldRef ...



Top 50 recent answers are included