"Smart Filters" is a region-type component added in APEX 21.2. It provides end-users with numerous filters that narrow search results at run-time.
Smart filters are handy, easy to use and, of course, enhance user experience. It has suggestions based on existing data that can be used as an easy filter. Since Smart Filters provides suggestions (or I should say smart suggestions), the user can control the dataset with just a few clicks.
This blog explores the Smart Filters component in Oracle APEX 21.2 and how you can use it for simple and effective solutions.
Smart Filters features a powerful new search bar that provides built-in auto-complete for your filters, supports searching for multiple terms, and provides easy keyboard navigation.
Search suggestions are at the heart of Smart Filters. These suggestions are based on the filters you have defined and are displayed as you type, or as chips below the search bar.
Filters are evaluated against your data and displayed below the search bar as chips, suggesting the top search filters most appropriate for your dataset.
When you are setting up your Report, APEX will suggest you add Filters. The above screenshot demonstrates the Smart Filters to choose from based on the data available in the table:
You can deselect as per the requirements; however, APEX selects them by default based on the data available in the table.
Available Chips Type
After the successful creation of the page, we are ready to run. Since we have selected the three filters: JOB, Salary and Department, they are added to the Smart Filters suggestion list.
Now we have working Smart Filters, let’s try to play around with them.
Chip Icons - We can change the Chip Icon displayed when we click on the search box.
Search Type Filter
Search Type Filter is a great fit for allowing the use of free text input to filter out data. It takes the full space of an item (text field) on screen; however, we have an option to collapse it if not in use.
Range Type Filter
A demo of Smart Filters can be viewed here.
Log in using the username: Admin.
Smart Filters are a handy and user-friendly search component to narrow down a dataset. They give a simple and effective solution to work on target data. We can use it as a global search for an application or on any page, using minimal whitespace. In APEX 21.2 Oracle rearranged the page structure, now we can move the filters to the navigation bar. They allow the end-user to search from anywhere in the application. For modern web development, Smart Filters should be considered for any APEX enquiry or search screens.