hrossi hrossi - 5 months ago 61
jQuery Question

SharePoint ListData.svc "contains" string filter operator

I'm using getJSON to retrieve list items from SharePoint like this:

[site url]/_vti_bin/listdata.svc/Keywords?filter=startswith(Title,'r')

I want to change it to retrieve this:

[site url]/_vti_bin/listdata.svc/Keywords?filter=contains(Title,'r')

which fails. Is there a "contains" operator for ListData.svc?


the good syntax is:

 [site url]/_vti_bin/listdata.svc/Keywords?$filter=substringof('r',Title) 

All operators are listed here :