FilterView

Content Type: Widget
Categories: Mobile

Overview

Note: this widget is only for use in Mendix version 8 and below. In Mendix 9, use nanoflows to achieve the same functionality. See the note in the widget's wiki on github. This widget is the spiritual successor to GridSearch, and adds the ability to configure advanced filtering controls to listviews on native. Features Implement configurable filtering on a listview on Native Model your own filter inputs (using any combination of widgets/nanoflows/attributes) Use those inputs to define dynamic filter constraints via expressions Apply filters to any datasource (database or nanoflow)

Documentation

image-20201211102634539

Filter View

This widget is the spiritual successor to GridSearch, and adds the ability to configure advanced filtering controls to listviews on native.

⚠️ This widget is only for use in Mendix 8. In Mendix 9, filter nanoflows can be used to achieve the same functionality with out-of-the-box components. See the wiki page for more details

Features

  • Implement configurable filtering on a listview on Native
  • Model your own filter inputs (using any combination of widgets/nanoflows/attributes)
  • Use those inputs to define dynamic filter constraints via expressions
  • Apply filters to any datasource (database or nanoflow)

Implementation

Model your own filters, how/where-ever you need!

image-20201209104841662

Configure the filters via expressions (connecting your filter inputs to datasource attributes)

image-20201209105028733

🎉

image-20201209105522954

TODO:

  • Add support for numeric filter types => added Big.js comparison operators and GT/GTE/LT/LTE numeric operators
  • Change the constraints to be "AND"ed => changed constraints.some() to constraints.every()
  • Remove the filterContent placeholder => removed
  • Add support for datetime types => added instanceof Date type for attribute type, and comparison operators
  • Expressions as constraints(?) 🤯 => changed all constraints to be expressions
  • Allow one source value to be searched in multiple target attributes(?) => you can just do this in an expression with or
  • Rename something more awesome. => Filter View

Releases

Version: 1.2.0
Framework Version: 8.0.0
Release Notes: What's new: + added note in the documentation to only use this widget with Mendix 8 and below.
Version: 1.1.0
Framework Version: 9.1.0
Release Notes: merged #3 and #5 . * Add widgets canvas for "empty content" * Add widgets canvas for "loading" * Add switch for "showProgressBar" while content is loading * update to remove deprecated client API warning
Version: 1.0.0
Framework Version: 8.12.0
Release Notes: - Implement configurable filtering on a listview on Native - Model your own filter inputs (using any combination of widgets/nanoflows/attributes) - Use those inputs to define dynamic filter constraints via expressions - Apply filters to any datasource (database or nanoflow)