Sharepoint: limit the results in caml query


/ Published in: JavaScript
Save to your folder(s)

First option uses a parameter in <a href="http://snipplr.com/view/46534/reading-and-writing-list-data-in-sharepoint-2010-using-spservices/">spservices method</a> to limit the results to four. Second option limits the results returned to six in the caml query iteslf using the &lt;RowLimit&gt; property.


Copy this code and paste it in your HTML
  1. CAMLRowLimit: 4,
  2.  
  3. <Query><Where><Eq><FieldRef Name="Active" /><Value Type="Boolean">1</Value></Eq></Where><RowLimit>6</RowLimit></Query>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.