on 10-10-2023 5:28 PM
Greetings,
Hoping somebody can explain what may be happening here. I set up an OData service for a custom structure.
Upon debugging the requests, I don't understand why the filter table is populated in the way that it is.
I'm thinking this is somehow related to the error that I am getting.
The first request example is working as intended.
However, the other string requests result in this error:
This comparison pattern is too long; it must be 256 characters or fewer.
I realized what I was doing...
On the UI5 side, the query string is put into the Matkl field and passed to the back end. Since this is the material type (I think going off memory), it's a smaller field so the rest gets chopped.
There's probably a better way to do this, but I just went ahead and changed this to Maktx, which is the material description field and thus has a longer length.
So, taking any of the examples I provided above, the filter now looks like this:
$filter=substringof(%2740000002%27,Maktx)
Now, the whole query string is intact when it hits my program on the back end, and I can use that value as needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.