Supista
Contact Us
documentation
Supista Platform
Components
Filters

Filters

Filters allow administrators to control which records appear inside a component. They are one of the most powerful configuration tools in Supista because they determine how users search, view, and access data.

In simple terms, filters answer the question:

"Which records should be visible under which conditions?"

Filters can be used for:

• Searching records
• Narrowing down large datasets
• Creating role-based visibility
• Restricting data access
• Automatically applying conditions to queries
• Showing only relevant records to users

For example:

• Show only active vendors
• Show warehouses with capacity greater than 500
• Show records created by the current user
• Restrict data based on user roles

Filters operate directly on table columns and evaluate values to determine whether a record should be displayed.


Filters Interface


Understanding Filters in Supista

In Supista, filters are created by selecting columns from tables connected to the component and applying conditions to them.

Every component is connected to a Main Table, and it may also include connected tables through relationships such as:

  • belongsTo
  • hasMany

Because of these relationships, filters can be applied using columns from:

  • The Main Table
  • Tables connected through belongsTo
  • Tables connected through hasMany

Example table structure:

Purchase Order (MAIN)
inventory_items (belongsTo)
Vendor Master (belongsTo)
Vendor Quotation Line Items (hasMany)

Filters allow administrators to define conditions using any of these available columns.


How Filters Are Applied

When a filter is configured, Supista evaluates the condition against each record in the dataset.

If a record matches the filter condition, it is displayed.

If a record does not match the condition, it is excluded from the component view.

For example:

Capacity > 500

This condition means:

Only records where the Capacity value is greater than 500 will be displayed.

Filters can be combined to create more specific data conditions, allowing administrators to precisely control which records appear.


Core Filter Types in Supista

All filters in Supista fall into three main categories.

Understanding these categories helps administrators decide which filter type to use for different scenarios.

  1. Static Filters
  2. Dynamic Filters
  3. User Level Access Filters

1. Static Filters

Static filters are the most common type of filters.

They compare a column value against a fixed value defined by the administrator.

Example:

Status = Active
Capacity > 500
ID = 15

In static filters, the value does not change automatically.

It remains constant until the administrator modifies the filter.

Static filters operate directly on column values stored in the database.


Where Static Filters Are Used

Static filters are typically used for:

• Basic data filtering
• Narrowing datasets
• Excluding unwanted records
• Applying standard query conditions

Example scenarios:

Show only Active Vendors

Vendor Status = Active

Show warehouses with capacity greater than 500

Capacity > 500

Show records created in a specific year

Year = 2024

Static filters are commonly used when the filtering rule remains consistent for all users.


Identifier Filters

Identifier filters apply to ID fields.

These fields contain unique numeric identifiers automatically generated by the system.

Example:

Record ID = 15

Possible conditions include:

• Equals To
• Not Equals To
• In Range

Example:

ID in range 1 – 50

This returns all records whose ID lies between 1 and 50.

Identifier filters are commonly used when administrators want to target specific records or record ranges.


Numerical Filters

Numerical filters apply to numeric columns.

Examples:

• Quantity
• Capacity
• Amount
• Price
• Stock Count

Available conditions include:

ConditionMeaning
Equals ToValue must match exactly
Not Equals ToValue must be different
Greater ThanValue must be larger
Greater Than Or EqualValue must be equal or larger
Less ThanValue must be smaller
Less Than Or EqualValue must be equal or smaller
In RangeValue must lie between two numbers

Example:

Capacity > 500

Numerical filters are commonly used in inventory, financial, and operational datasets where numeric thresholds are important.


Categorical Filters

Categorical filters apply to text fields or labels.

Examples:

• Name
• Category
• Status
• Type

Common conditions include:

• Equals
• Contains
• Starts With

Example:

Warehouse Name = Central Warehouse

Another example:

Category Contains Electronics

Categorical filters are useful when records are grouped or identified using text-based classifications.


Date Time Filters

Date filters apply to date and time fields.

Examples:

• Created Date
• Updated Date
• Start Date
• Expiry Date

Conditions include:

ConditionMeaning
Before DateDate earlier than value
After DateDate later than value
Between DatesDate lies between two values

Example:

Created Date Between Jan 1 and Jan 31

Date filters are commonly used for time-based data analysis and reporting.


Boolean Filters

Boolean filters apply to True / False values.

Example fields:

• Active
• Approved
• Enabled
• Verified

Possible values:

True
False

Example:

Active = True

Boolean filters are typically used for status or approval-based fields.


Switch Filters

Switch filters are similar to Boolean filters but appear as toggle switches in the interface.

Example:

Enabled = True

Switch filters are commonly used for:

• Status toggles
• Enable / Disable settings

They allow administrators to quickly filter records based on binary states.


2. Dynamic Filters

Dynamic filters automatically determine their value based on system context or user context.

Unlike static filters, the value is not manually entered.

Instead, the system calculates it during runtime.

Example:

Created By = Current User

Here, Current User changes depending on who is logged in.

Dynamic filters are extremely useful when building personalized data views.

They allow components to automatically adjust the displayed data depending on who is accessing the system.


Common Dynamic Filter Examples

Current User

Shows records belonging to the logged-in user.

Created By = Current User

Meaning:

A user will only see records they created.


Current Date

Filters records based on today's date.

Expiry Date > Current Date

Meaning:

Show only records that have not expired.


Current User Role

Filters records based on the role assigned to the user.

Department = Current User Department

Meaning:

Users see records related only to their department.


3. User Level Access Filters

User Level Access Filters are used when administrators want to control which records users are allowed to see.

This type of filter is mainly used for data security and access control.

In Supista:

If data visibility depends on who the user is, administrators use User Level Access Filters.

These filters are frequently used together with Role Access settings.


Example

Suppose we have a field:

Assigned User

A user-level filter could be:

Assigned User = Current User

This ensures that:

A user can only see records assigned to them.

This approach is commonly used in systems where records must remain isolated between different users or teams.


Data Level Permissions

Filters are also used to control data-level operations inside components.

These include permissions such as:

PermissionDescription
DataControls which records are visible
Column Show / HideControls which columns appear
UpdateControls whether records can be edited
DeleteControls whether records can be removed

Example:

Update allowed only if Created By = Current User

Meaning:

Users can edit only their own records.


Column Show / Hide with Filters

Filters can also control column visibility.

Example:

A field called Salary may be visible only to Admin users.

Condition:

User Role = Admin

If the user is not an Admin:

The column remains hidden.

This allows administrators to protect sensitive information while still displaying other data.


Dynamic vs Static Filters

Understanding the difference between dynamic and static filters is essential.

TypeValue SourceExample
StaticFixed valueStatus = Active
DynamicSystem generatedCreated By = Current User

Static filters are predictable and constant.

Dynamic filters adjust automatically depending on:

• Logged in user
• Date and time
• System context


Summary

Filters are a foundational feature of Supista components. They allow administrators to define how records are searched, displayed, and secured.

Using filters effectively allows you to:

• Control record visibility
• Personalize user views
• Restrict data access
• Improve search efficiency
• Maintain data security

The three main filter categories are:

  1. Static Filters — fixed value comparisons
  2. Dynamic Filters — values generated by the system
  3. User Level Access Filters — filters used for data access control

Together, these filters allow administrators to build powerful, flexible, and secure data interfaces within Supista.

Last updated on
Transform Data into Decisions with Supista – Your Intelligent Data Partner
AI-Powered Operational Intelligence for Growing Businesses

Automate your operations. Orchestrate your workflows. Scale with confidence.

Book a free strategy session with our Automation Experts and discover how Supista’s AI-Composable ERP can transform your operations into a scalable and intelligent system.