Search Filter Widget

Last modified on 2022/05/28 10:53

Apps - Widget - Search Filter icon.png  This widget belongs to the EasyVista category in the widget library. Connected to one or more data sources linked to Product name - ev itsm.png, it enables you to filter data using a dynamic search field linked to one or more columns in the data source. 

  • The search is run on Product name - ev itsm.png menu items, in discussions and in the knowledge base.
  • The widget applies the search criteria to the different data sources simultaneously.
  • You can define an app page specifically for displaying search results.

Notes

  Open url.png  See General remarks on widgets.

  • The widget can point to the following data sources:
  • You can select up to five search fields in each data source linked to the widget. The list of columns in the data source that can be used as search criteria is defined by Logo - EasyVista.png. You cannot modify it.
  • In execute mode, the search will apply to all widgets in the app using the same EasyVista data sources as the those defined for the Search Filter widget, e.g. Dashboards widget or Data Viewer widget.

Best Practice big icon.pngBest practice

  • You should use the Search Filter widget to enable users to filter Product name - ev itsm.png data using a dynamic search field and a Filter List widget to enable users to consult the data using a list of dynamic filters. You can combine these two widgets when they are both linked to the same EasyVista data source.
  • You can modify the graphic properties of the different widget elements, e.g. font, size, alignment, or color, using the Theme section and the Theme > Search section for the overall configuration.

Examples

  • Run a search in the employee directory using several search criteria, e.g. login, email, function and department.
             Employee directory - Example with several criteria.png
  • Run a search using several data sources.
    • (1) Bar Chart and Data Viewer widgets pointing to an EasyVista data source called All Problems.
    • (2) Data Viewer widget pointing to an EasyVista data source called All Incidents.

      Apps - widget Search Filter - Example before search.png

    Search using the Open filter for all records from both data sources.

    Apps - widget Search Filter - Example after search.png

Example2
  • Run a search combining a Search Filter widget and a Filter List widget pointing to the same EasyVista data source.
Enter the keyword, failure, to search for incidents using the Search Filter widget (1). The Bar Chart widget and Data Viewer widget pointing to the same EasyVista data source will automatically be refreshed. Select the Open filter in the list of incidents to display only those that are open using the Filter List widget (2). Both widgets will automatically be refreshed.
Apps - widgets Filter List and Search Filter - Example - Search restriction.png Apps - widgets Filter List and Search Filter - Example - Search and Filter restrictions.png
Example2_End

List of properties

Content

DeviceNativeStyle

Device Native Style: For an app designed for use on a smartphone, this indicates if the widget should be displayed according to the style guide of the smartphone browser (box is checked) or according to the standard Service Apps style (box is not checked).


Box is checked (smartphone mode: Android or iPhone) Box is not checked (standard Product name - ev sas.png mode)

Apps - widget Search Filter - Device native style On.png

Apps - widget Search Filter - Device native style Off.png

SearchPlaceholder

Search Placeholder: Text displayed in the search area (1) which is automatically cleared once the user starts typing.
         Search placeholder example.png

Best Practice icon.png  You should use this field as an input help, e.g. by indicating the available search criteria.

Clear Search Input: Used to indicate (box is checked) or not (box is not checked).

Target Page: Page defined specifically for displaying search results.

  • Click Apps - Edit icon.png to open the page in the Design pane.
  • Click Apps - Delete 2 icon.png to cancel the page selection.

Data Source And Fields: List of data sources and fields where the search will be run.
         Apps - widget Search Filter - Datasource and fields properties.png

  • To add a data source, click [ ADD ITEM ].
  • Apps - Edit icon.png : Used to modify or view the contents of the data source.
  • Apps - Delete icon.png : Used to remove the data source. All previously selected fields will be cleared from the search criteria.
  • Apps - Order objects icon.png : Used to modify the order of data sources when running the search.
  • Search Fields: List of data source columns in which records are searched.
    • Click Apps - Delete 2 icon.png to delete one of the selected columns.

Theme

 Open url.png See the description of properties.
 

 

Display Configurable element Properties to specify
Graphic Properties - General elements.png (1) Background color of the widget General properties > Background Color list 2
(2) Background color of the search field General properties > Background Color list 1
(3) Rounded corners of the search field Search section > Radius

Note: Apply a radius of 0 if you want a border with right angles.

(4) Search icon Apps - Search icon.png

Note: The search icon is defined by Logo - EasyVista.png. You cannot modify it.

Search section
  • Icon Size: Size of the icon
  • Search Icon Color: Color of the icon
  • Search Icon Background Color: Background color of the icon
Graphic Properties - PlaceHolder element.png (5) Text displayed in the search field when the page is opened General properties > Element = PlaceHolder
Graphic Properties - Text Before Search element.png (6) Font color during data entry General properties > Element = Text Before Search
Graphic Properties - Text After Search element.png Display after the search is run
  • (7) Font color
  • (8) Background color of the search field
General properties > Element = Text After Search

Procedure: How to implement a Search Filter widget

1. In the drop-down list found below the Data Source And Fields property, select the EasyVista data source from which you want to select the widget's search criteria.

2. Click Search Fields and select each data source field to be used as a search criterion. Click Apps - Delete 2 icon.png next to the name to delete one of them.

3. If you want to run a search on data from another data source, click [ ADD ITEM ] and select the relevant data source and its fields.

4. Define the graphic properties of the widget by selecting the required elements in the Theme section.

5. Define the widgets for displaying the search results. If you want to insert them in a different page, select the page from the Target Page list.

6. Switch to execute mode and check the workability of the widget.

Tags:
Powered by XWiki © EasyVista 2022