O'Reilly logo

Easy Web Development with WaveMaker by Edward Callahan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Filters

Setting live variable filters using JavaScript can be troublesome for some developers. Filters are nothing more than a member wm.Variable named filter. This provides us with a few ways to manipulate filters.

The easiest way is to bind the live variable filter to a wm.Variable component and manipulate wm.Variable as we already have done. The type of wm.Variable must match the filter variable type. This means that we can filter on related objects; however, when we create the wm.Variable component, it must be for the related type, and we'll bind the related field to the wm.Variable component, not to the entire filter object.

Another option is to use setFilter(), passing a wm.Variable component as the parameter to setFilter(). Again, we are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required