Sharepoint: limit the results in caml query

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

First option uses a parameter in <a href="">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,
  3. <Query><Where><Eq><FieldRef Name="Active" /><Value Type="Boolean">1</Value></Eq></Where><RowLimit>6</RowLimit></Query>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.