I am using SharePoint Rest ODATA API for an jquery autocomplete field
Relevant code is:
/_vti_bin/listdata.svc/PropertyInformation$filter=indexof(Title,'Carrin') gt -1
This is a simple IndexOf filter. The problem is it is case sensitive.
I am just trying to do a "Contains" filter but I don't believe ODATA has a "Contains" method so I am using the indexOf.
How can I do a tolower() call on indexof? (is it even possible?)
找到了解决方案(很简单)
/_vti_bin/listdata.svc/PropertyInformation?$filter=indexof(tolower(Title),'" + request.term.toLowerCase() + "') gt -1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.