Table Filters |
This help file applies to an out-of-date version of MainBoss.
The most recent version of MainBoss is MainBoss 4.2.4.
For the latest version of this help file can be found here.
< Previous section | Table of Contents | Index | Next section >
A table filter tells MainBoss to display a subset of all the records that are in a particular table. In other words, it "filters out" records that you don't want to see.
For example, suppose you want to see which jobs are scheduled to begin today. You could set up a filter on the Work Orders table saying that you only want to see work orders whose "Work Start Date" is today. MainBoss would then filter out any work orders that started on some other day, so that the table viewer only displays work orders starting today.
As another example, suppose you only want to see information on units in your HVAC system. You could set up a filter on the Units table saying that you only want to see work orders whose "System" is HVAC. MainBoss would then filter out non-HVAC unit records, so that the table viewer only displays HVAC units.
You can specify a filter in any table viewer. To do so, click the filter set-up button beneath the table's list of records:
This opens a window similar to the one used to search for individual records. Use this window to specify which records you want to see. For example, suppose you're in the Items window and you specify
This indicates that you only want MainBoss to display item records whose "Description" field starts with the letter B. Once you enter this information, click the Apply Filter button. You'll see that the table viewer changes so that it only shows records that match what you've specified. If you Close the filter window, the table remains filtered. To return to the table's usual state, click the button associated with the filter.
When you specify one condition, MainBoss gives you a new line where you can specify an additional condition. Each time you specify a condition, MainBoss gives you a new line for more.
If you specify multiple conditions, MainBoss only shows records that satisfy all the specified conditions. For example, suppose you're filtering the Requests table. One condition might specify that you only want to see requests on a particular unit. A second condition might specify that you only want to see requests with a particular priority code. MainBoss will then display all requests on that unit with the given priority code.
The filter set-up window contains the following:
Fields, filter conditions, values: Select the records to be displayed. You specify your selections in the same way that you specifying search conditions when searching for a particular record.
Apply Filter: If you click this button, MainBoss immediately filters the table using the given criteria. Note that the table does not get filtered until you click this button.
Disable Filter: If you click this button, MainBoss stops filtering the table—you see all the records you normally would.
Close: Closes the window where you specify filters. If you have not clicked Apply Filter, MainBoss will not filter the table. Furthermore, MainBoss will not record any filter conditions you've specified—the next time you open the filter window, you'll start from scratch again.
On every table viewer, there is a checkbox labeled Apply Filter. If this box is blank, the table is unfiltered—you see everything you'd usually see. If you checkmark the box, the table will be filtered using the filter that is currently defined. By blanking or checkmarking the box, you can switch back and forth between filtered and unfiltered displays.
Some filters let you specify patterns rather than specific character strings. For example,
Description Matches Pattern .*furnace.*
corresponds to any Description which contains the string "furnace" anywhere. (The .* pattern is a particularly useful one which stands for any string of zero or more characters.) Patterns are often called regular expressions, and MainBoss supports any regular expression as defined in the Microsoft .NET environment. For more information, see https://www.codeproject.com/Articles/9099/The-Minute-Regex-Tutorial
Request, work order and purchase order tables are also affected by the active filter. For more, see The Active Filter.
For more on using table viewers, see Using Table Viewers.
< Previous section | Table of Contents | Index | Next section >