on ‎2018 Sep 21 7:23 PM
Hi,
I can read the filter Odata, for instance :
$filter=startswith(FIELDNAME,'ABC')
return option = CP,
Low = ABC*
in the filter internal table in the DPC_EXT
so far so good but I cannot find the correct syntax for the substringof. According to the Odata specifications, the syntax should be :
substringof(string po, string p1)
$filter=substringof(FIELDNAME,'ABC')
but this does not work. Any idea on the correct syntax ?
Thanks !
Request clarification before answering.
The syntax you are using looks correct.
Have you checked your implementation?
I posted the following blog with regards to more complex statements with substring.
Regards,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andre,
Thanks for the answer, your blog was pretty useful !
I was using syntax :
substringof(FIELDNAME,'ABC')
when it should be :
substringof('ABC',FIELDNAME)
Now it work like a charm, thanks a lot !
Regards,
Dany
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.