Skip to main content

Knowledge Center

Filtering in RamBase - Using the Filter builder

Standard filters

Most applications have the option of using a set of standard (pre-defined) filters or creating a custom filter.

To do so, locate a Search field and click on the Filter builder icon at the right of the search field.

If standard filters are available, select the intended filter from the popup.

Filtering.jpg

Every application has a different set of filters. Once a standard filter is selected from the popup it will be available under the Search field. If the filter is active it will be marked with color orange. If a filter is inactive it will be marked with the color gray. A filter can be removed, from under the Search field by clicking the X icon placed on the filter.

Icon

Description

filter_funnel.svg

Filter builder icon

Remove_filter_icon.jpg

Remove filter icon

Custom filters

In the Filter builder popup, the user can also Create custom filters by selecting Field, Operator and Value in the Create custom filters area, and then clicking the Save filter button. Saved filters are application specific and will be available from the My saved filters area. Click the intended saved filter to add it below the Search field.

Filtering from the search field

Filtering is also available from the Seach field.

2021-07-28_15-04-40.png
2021-07-28_15-11-40.png

Click Search field and then press SPACEBAR. This will list all of the available fields to filter the list on. Either select the intended filter or use the UP and DOWN arrow keyboard keys to navigate to the necessary filter and press the ENTER key to apply the filter. A popup will appear with filter query expressions. The expressions are described in the table below. Once you select the expression another popup will follow where you can decide which operator option to use. There is an And, Or and OrderBy operator option available which enables you to add another field to the filter. When finished building your filter query, press the ENTER key and the filtered result is displayed in the list.

RamBase supports the following operators for filter expressions

Operator

Meaning

Example

=

Equal to

PART="ABC"

<>

Not equal to

PART<>"ABC"

>

Greater than

PART>100

<

Less than

PART<100

>=

Greater than or equal to

PART>=100

<=

Less than or equal to

PART<=100

,

And

PART="ABC",PRICE>100

:

Begins with

PART:ABC

RamBase supports the following wild cards

Wild cards can be used in certain filter expressions to substitute for one, or several unspecified characters in the expression.

Wild card

Meaning

Example

*

Zero, one, or more than one unspecified characters

PART="ABC*" (Will give all PARTs beginning with ABC)

?

One unspecified character

PART="ABC?" (Will give all PARTs made up of 4 characters beginning with ABC)

Note that wild cards, especially when placed at the start of the expression (TEXT="*ABC"), may increase the response time in some situations. In these cases you should consider if the same search can be done without using a leading wild card.

Avoid using wild cards in expressions that use ‘>’ (Greater than) ‘<’ (Less than), ‘>=’ (Greater than or equal to) and ‘<=’ (Less than or equal to), as this will behave differently depending on the type of field the filter is set against and the result may not be obvious.

Filtering on DATE- and PERIOD-fields

Task

Operators

Examples

Filter by specific date or specific date interval

‘=’,’>’,’<’,’>=’,’<=’,’<>’

DATE="2015.01.01"

DATE>="2015.01.01"

DATE>="2015.01.01",DATE<="2015.01.31"

Filter by year

=

DATE="2015*" (All of 2015)

Filter by month

=

DATE="2015.01*" (All of January 2015)

Filter by week

=

DATE="*1501" (Week 1 of 2015)

Filter by period

=

PERIOD="201501"

Filtering on NUMBER-fields

Task

Operators

Examples

Select all that are equal to a given number

‘=’

PRICE=100

Select all that are greater than a given number

‘>’

PRICE>100

Select all that are greater or equal to a given number

‘>=’

PRICE>=100

Select all that are less than a given number

‘<’

PRICE<100

Select all that are less or equal to a given number

‘<=’

PRICE<=100

Select all that are not equal to a given number

‘<>’

PRICE<>100

Select all that have a value

‘>’

PRICE>0

Filtering on TEXT-fields

Upper- and Lower-case are not differentiated when filtering on TEXT-fields.

Spaces will be taken into account, so for instance filtering on TEXT="INKPRINTER" will cause "INK PRINTER" to be left out of the result.

If using ‘>’ (greater than) or ‘<’ (less than) in a filter, this will filter the TEXT based on a character for character basis. Take care if using ‘>’ or ‘<’ against TEXT fields that contain numbers as this may not behave as expected.

For instance, if filtering on TEXT>"1000" this would also include results where TEXT is "12". As TEXT-fields are compared on a character for character basis, the second character here will decide that 2 is greater than 0 and therefore include this in the result.

Task

Operators

Examples

Select all that are equal to a given value

‘=’

TEXT="INKPRINTER"

Select all that contain a certain value somewhere in the text

‘=’

TEXT="*PRINT*"

Select all that start with a certain value

‘=’

TEXT="INK*"

Select all that have no value

‘=’

TEXT=""