PDA

View Full Version : incorrect filter error report in Project Inspector



jptrainor
3 Sep 2012, 8:43 AM
Create and exact match filter on a store. Set the property. Do not set the value because you expect to set the value in code before loading the store.

The Project Inspector draws a error icon to the right of the filter and provides the following error message: "A Filter requires either a property and value, or a filterFn to be set".

There is no error to report in this case. The code runs fine and is as intended. I tried setting the value to 0 (zero) and null but the error report persists. The error is removed only if I set the value to a non-zero number. But in this case a non-zero is poor choice for a default because it should be set to an invalid value. In my case, an invalid value would be zero or null.