cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MDK Filter Action and QuerySpecifier quotes

kevinbraun
Explorer
0 Kudos
625

It's very likely I've done something wrong but I can't figure out what.

I have a filter page that has FormCellFilter control.  In the control I've specified an Object collection FilterProperty.  I've set my ReturnValue as a query string that would contain quotes around the desired filter value:
mdk filterproperty.png

The problem is when the modal is closed and the ObjectTable does a requery, it seems the query string has the quote characters delimited, and the OData call fails:

mdk filterproperty1.pngmdk filterproperty2.png

Is there something I've done wrong?  I've also tried returning the text from a rule with different variation, but had no luck there either.

View Entire Topic
panushjain
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @kevinbraun

DiplayValue expects a string: https://help.sap.com/doc/3642933ef2e1478fb1578ef2acba4ae9/Latest/en-US/reference/schemadoc/definitio...

Have you attempted to provide a property without a space? Properties (or field names) containing spaces are generally not permitted, especially when constructing strings or queries (such as OData queries). I suggest surrounding the string with single quotes, like this: 'HOT SHOT' similar to how you have done in the ReturnValue or using a property name devoid of space.

Thank you.

kevinbraun
Explorer
0 Kudos
That doesn't seem to be the case. Adding the quotes on the display value makes it actually display quotes at run time in the app, with no change to the behaviour I described. Note that I'm having an issue with the return value, not the display value.