2017-07-22 2 views
0

J'utilise SharePoint API Rest ODATA pour un champ de saisie semi-automatique jqueryODATA Restful boîtier de filtre indexof insenstive

Code pertinent est:

/_vti_bin/listdata.svc/PropertyInformation$filter=indexof(Title,'Carrin') gt -1 

Ceci est un simple filtre IndexOf. Le problème est qu'il est sensible à la casse. J'essaie juste de faire un filtre "Contient" mais je ne crois pas que ODATA ait une méthode "Contient" donc j'utilise l'indexOf.

Comment faire un appel tolower() sur indexof? (Est-il possible?)

Répondre

0

trouvé la solution (assez simple)

/_vti_bin/listdata.svc/PropertyInformation?$filter=indexof(tolower(Title),'" + request.term.toLowerCase() + "') gt -1