Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Search values from a list using wild card character

$
0
0

Hi,

I am tying to use SPServices very newly. Here I found out how to get the data from a list. But can i use wild card character like* here? In my below code I have used a full title JOHN, but if I want to search all entries srating fromH how to do that. Also How can I search between 2 dates? 

var fieldsToRead =  "<ViewFields>" +
                               "<FieldRef Name='Title' />" +
                               "<FieldRef Name='Name' />" +
                              "</ViewFields>";

var query = "<Query>" +
            "<Where>" + 
          "<Neq>" +
            "<FieldRef Name='Title'/><Value Type='Text'>JOHN</Value>" +
             "</Neq>" +
            "</Where>" +
            "<OrderBy>" +
             "<FieldRef Name='Title'/>" +
            "</OrderBy>" +
            "</Query>";


function GetListDetails() {
$().SPServices({     
operation: "GetListItems",    
async: false,    
listName: "List1",
CAMLViewFields: fieldsToRead,
CAMLQuery: query,
completefunc: function (xData, Status) {});


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>