When the list of items gets longer, we may want to view each time only the items belonging to a specific category.
The Table Wizard makes this very simple (version 1.3.28):
If you now save your model and start the application, you will see an additional row at the top of the table. If you select a category in this row and press 'Refresh', only matching items will be displayed. For example, if you select 'Dairy', only items with the category 'Dairy' will be displayed:
Filtering works nicely, but the 'Got It' button at the filtering row is completely out of place.
It appears there because the filtering row is a re-use of the table row. We need to hide it when the row is used for filtering.
If you now save your model and restart the application, you'll get a cleaner screen layout:
The filtering we have made was an "exact match" - displaying only items matching the exact values specified.
More flexible filtering can be achieved by specifying ranges of values. For example, we may want to list all items with Quantity 2 or more, only items with Quantity between 2 and 5, or only items with Quantity 5 or less.
To activate such filterings, we use two filtering rows instead of one. The upper row (the 'From' row) is used to specify the lower limit of the range of values we are interested at, and the lower row (the 'To' row) is used to specify its upper limit:
If you now save your model and restart the application, you will be able to specify a ranges of values for filtering. For example, here is how to list all items with Quantity 2 or more:
The screen layout doesn't look very good, espcially in the iPhone. The Quantity column seems to waste too much space.
We can improve the display by reducing the size of the Quantity column:
Download Model: Stage 8 (version 1.3.28)
Next: Allowing for paging in the list
For best results, use the Firefox browser..