How to Use Crosslight with CompositeFilterDescriptor On Strings and Nulls?

3 replies. Last post: August 19, 2015 10:23 AM by Arief Handany
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Jimmy TungolMember

Hi,

We've looked at Dynamic Data Access with Query Descriptor, and we didn't find any filter that use strings or nulls, it's all numbers. Now, the reason why we noticed this is when using a FilterDescriptor with a string value or null, Crosslight converts string values without a valid qualifier, which violates OData specifications. The same is true when you specify null as a value, the result of the assigned value is blank. Now in order to workaround this, we needed to add quotes (') as qualifiers for strings (e.g. "'Beverages'") and pass a null value as string (e.g. "null"), instead of the actual null object. Surely the samples from your documentation will work because numbers when converted to OData specifications will be treated as is, but this is not the case for strings, dates, etc.

Is this how we should do this with Crosslight or is there a proper way of doing it that we might be missing? Please advise.

All times are GMT -5. The time now is 10:47 PM.
Previous Next