Creating a custom reusable filtering interface with macro component: An Example
Neil Lee, Engineer, Potix Corporation
February xx, 2015
ZK 7.0.4
Introduction
Filtering commonly augments data displaying functionality. Users can create multiple views of a single data set based on different filter criteria. As data sets become larger and larger, filtering also helps increase performance and improve usability by reducing the information shown. Take Excel for example. After filtering is enabled, each column header will include a button that displays the filtering configuration dialog box for the respective column when clicked. Users can then edit the condition that the data in that column must satisfy in order to be included in the final display. In this smalltalk, I am going to create a macro component for collecting filter criteria, and a utility for filtering data.
Live Demo
As an example, law enforcement agencies can use filtering to find trends in criminal activities. For concreteness, I will take criminal records from Sacramento in 2006, which consists of 7,584 offenses. It is also interesting to mark illegal occurrences on google maps.
How it works
Summary
Download
Comments
Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License. |