Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Is this a one-time query or do you want to implement it somehow?</p> <p>If onetime, then you can use this query:</p> <pre><code> &lt;Where&gt; &lt;Or&gt; &lt;Or&gt; &lt;Or&gt; &lt;Or&gt; &lt;Or&gt; &lt;Or&gt; &lt;Or&gt; &lt;Or&gt; &lt;Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;0&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;1&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;2&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;3&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;4&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;5&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;6&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;7&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;8&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;BeginsWith&gt; &lt;FieldRef Name='Title' /&gt; &lt;Value Type='Text'&gt;9&lt;/Value&gt; &lt;/BeginsWith&gt; &lt;/Or&gt; &lt;/Where&gt; </code></pre> <p>Another way is to fetch all items, use SPListItemCollection.<a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemcollection.getdatatable.aspx" rel="nofollow">GetDataTable()</a> method to return datatable, and filter your records there.</p> <p>If List will contain many items, this way is not recommended, as it involves getting all items from list.</p> <p>If, however, you want to implement this in somekind of feature, maybe it would be better to have another column that indicates type of record.</p> <p>If you go with using this query in a feature, create an index for that column.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload