Flexi Kanban
  • Introduction
    • πŸ“ƒAbout Flexi Kanban
    • βš–οΈFlexi Kanban in Comparison with Other
    • πŸ“˜What are Kanbans?
    • πŸ“•User's Guide to the Kanban Boards
  • Standard Dashboard
    • πŸš€Getting started
      • How to Build a Simple Kanban Using Creation Wizard Abilities
      • Demo Example: Task Dashboard
      • Demo Example: Events Dashboard
      • Demo Example: Opportunities Dashboard
      • Demo Example: Gantt Dashboard
      • Demo Example: Cases Dashboard
    • πŸ“Basics
      • How to Create Standard Dashboard
      • How to Create Child Dashboard
      • How to Incorporate Child Dashboard into Lightning Page
      • How to Open Dashboard in builder (Edit)
      • How to Share Dashboard
      • How to Clone Dashboard
    • πŸ—οΈConfigure Dashboard
      • Working with Dashboard Layout
      • How to Configure Dashboard Basic Properties
      • How to Configure Dashboard Filters
      • How to Add Dashboard Statistics
      • How to Configure Variables
      • How to Configure Events
      • How to add Dashboard Buttons and Menus
    • πŸ™οΈConfigure Column
      • How to Π‘onfigure Column Properties
      • How to Set Column Groups
      • How to Set and Use Column Custom Attributes
      • How to configure Column Data Source
      • How to work with Related Objects
      • How to configure Column Header
      • How to configure Column Body
      • How to configure Column Footer
      • How to configure Column Container and Filters
    • 🎫Configure Card
      • How to configure Card Properties
      • How to configure Card Data Source and Conditions
      • How to configure Card Compact Layout
      • How to configure Card Layout
      • How to configure and use Card Custom Attributes
      • Configuring Card Movement and Column Junctions
      • Configuring Card Actions
    • πŸ“šGroups of Cards
      • How to configure Card Grouping
    • πŸ”§Tools
      • Using Merge Field Picker
      • Using Formula Editor
      • Configuring CSS styles
      • Configuring Rows, Cells, Menus and Buttons
      • Configuring Handlers
    • πŸ‘“Using Dashboard
      • How to use Kanban API actions
      • How to Incorporate Dashboard into Lightning Page
      • How to build the link to the Dashboard
      • How to Work with Variables
      • How to debug Dashboard
      • How to Work with Filters and Orders
    • ✨Howtos and Best Practices
      • How to configure communication between Dashboards
      • How to configure communication between Dashboard and Form
      • How to display different layouts for the same kanban card
      • How to design kanban for your needs
        • How to colorize cards
        • How to add a quick-filter column
      • What inactive column can be used for
      • Tips and Tricks
  • Composite Dashboard
    • πŸ—„οΈIntroduction
      • πŸ”§How to Create a Composite Dashboard
    • πŸͺ›Working with Composite Dashboard Layout
      • Configuring Parent Dashboard
      • Configuring Child Dashboard
    • πŸ–‡οΈConnections Between Dashboards
    • πŸ”¬Examples
      • !! Calendar Dashboard
    • πŸ₯‡Howtos and Best Practices
      • How to Pass Variables Between Parent and Child Dashboards
  • Components
    • πŸ“‹Forms
      • πŸ“‘Basics
        • Form Building Overview
        • Working with Form Settings
        • Working with Source Object fields
        • How to Preview the Form
        • How to configure the Form Sharing Rules
        • Understanding the Form Dependencies
        • Working with Conditional Styles
        • Working with Conditions
        • Search Over the Form
      • πŸͺ›Tools
        • Variables
        • Additional Fields
        • Context Object
        • Form Action
        • Event
      • Components
        • Add and Remove Form Components
        • Components Basic Properties
        • Components Validation Rules
        • Styling Form and Form Components
        • String Field
        • Text Area Field
        • Rich Text Field
        • Lookup Field
        • Date Field
        • Datetime Field
        • Time Field
        • Number Field
        • Currency Field
        • Multi-Select Field
        • Picklist Field
        • Option: Section
        • Option: Static Text
        • Option: Image
        • Option: Blank Space
        • Option: File
        • Option: Custom Button
        • Option: Custom URL
        • Option: Nested Form
        • Option: Lightning Component
        • List. Related Lists.
      • Using Form
        • How to incorporate Form into the Lightning Page
        • How to incorporate Form into Screen Flow
        • How to build the link to the Form
        • (unpublished, empty)How to incorporate Form into the Lightning Component
        • How to run Form Action from Lightning Component
      • Tricks, Hints and Best Practices
        • How to configure communication between Forms
        • How to pre-populate form fields
        • Deployment of Forms
        • What Are Parameters?
    • 🀾Actions/Action Groups
      • Basics
        • Working with Actions
        • Working with Action Groups
        • Working with Functions
        • Working with Context objects
        • Working with Conditions
      • Types
        • Validation Rule Action
        • Define Variable Action
        • Create Record Action
        • Update Records Action
        • Delete Records Action
        • Send Email Action
        • Callout Action
        • Execute Apex Action
        • KanBan API Action
      • Using Actions
        • !!unpublished empty!! How to execute Action/Group from the SF Process/Flow Builder
        • How to execute Action/Group through the REST api
        • !!unpublished empty!! How to execute Action/Group from the Einstain Bot
        • !!unpublished empty !! How to execute Action/Group from APEX
      • Best Practices
        • !! How to use Execute in background option
        • !! Deployment Actions/Action Groups
  • πŸ“–References
    • βš™οΈApplication Settings
    • ♾️Functions
      • SObject
      • Text
      • Logical
      • Numeric
      • Date and Time
      • JSON
      • System
      • Charts
    • πŸ—ƒοΈQuery Conditions
    • Apex Data Provider
    • πŸ“How to add a Kanban to Navigation Items Panel
    • πŸ‘₯Manage Licenses
    • πŸͺͺAssign Permission Sets
    • πŸ“¦Deployment
      • Deploying Using Standard Credentials
      • Deploying Using Connected App Authentication
      • How to configure the Salesforce Connected Application for Flexi Kanban deployment
  • Grant Login Access to Support
  • Subscription Plans
  • Support Agreement
  • Access License Agreement
  • Privacy Policy
Powered by GitBook
On this page
  • Standard Mode
  • Advanced Mode
  • Manage Filters and Orders
  • Sharing Views
  • How to mark filter as default for users programatically
  • Configure custom sources
  • Transmitting Filters to Other Places
  1. Standard Dashboard
  2. Using Dashboard

How to Work with Filters and Orders

Last updated 6 months ago

Standard Mode

Filters and orders allow users to set specific criteria that displayed cards should match and their sorting. In the Standard mode filters and orders are applied to all columns which have the same data source (for kanbans with only one data source - to all columns).

Filters and orders are set and applied separately for each column. They can be stored as Kanban views and selected to be applied together for the whole dashboard.

Also they can be stored as Filter Templates suitable for future re-use (see below).

On the Kanban click Filters button to open Filters sidebar.

Configuring Filters

  • Click "Add Filter" link in the "Filters" section header or the same button in the section (it is shown if no filters have been added yet)

  • Select a Filter Source (Object or Custom filter set for it):

Source is a set of object fields allowed to select, and columns to apply these selections for. Source can be:

  • system - matches SObjects selected as data source for columns

  • custom - configured by dashboard administrator (see below)

After Source has been selected, you need to set a filter criterion.

  • Select a Field. An "Operator" picklist will appear; its content will depend on Field selected.

  • Select necessary operator and set the Value in the proper field.

  • Click "Add" button to add filter criterion to selected columns:

User can add more filter criteria. Their amount will be shown in the header:

If you add a filter which asks for some value, and this value is empty, these filters will be ignored. You should use "is null / is not null" operators to filter by empty values. System will show a hint about this, if you add a filter with empty value.

Now user can:

  • Change filter criterion value (example: "Mechanical")

  • Edit filter criterion

  • Delete filter criterion

  • Clear all filters to show all records

  • Apply specified filters

  • Specify fliters logic (see below)

If add more than one filter criteria to the same column, user gets possibility to combine them with logic operators. The proper form will appear. Set the logic (place filter criteria numbers in brackets), e.g. {1} or {2}. By default all filters are applied with "AND" logic, i.e., each entry must match all filters.

User also can add a sorting order to column views. Click "Add order" link or button (in orders section, if there are no orders added yet):

An order form will be displayed. Select source (in the same way as for filters), and field and order type (ascending/descending). Click "Save" to add order to the view or "Cancel" to cancel.

You can add more sorting orders to get items sorted by secondary (tertiary, etc.) fields. All orders will be displayed in "Orders" section:

Advanced Mode

Advanced Mode enables individual filtering and sorting settings for each column separately. Toggle this mode on by clicking a proper toggler:

In Advanced mode a column picklist is shown at the top of sidebar. User should select a column to filter it. After column is selected, user should select a Source, field, operator and value (in the same way as in Standard mode).

If some filters and orders were added in Standard mode, they will be added to each column with the same Data Source in Advanced mode.

Then user can sepcify which columns configured filter should be added to. An additional subsection is shown under the filter criterion form. Click it's header to expand and select other columns to apply filter to (note that column selected previously will be already checked there):

Select columns with checkboxes and click "Save" to apply changes.

Filter will be shown in the sidebar. If filter is set to be applied not for all columns, proper information will be shown (mouseover a link to see which columns filter will be applied to):

Manage Filters and Orders

User can save configured filters and orders for further usage as a View (see below).

Filters and orders that were not saved will be lost on page reload or clear.

Newly configured filters based on default "All Records" one can be saved as new Views only. Click menu button and select "Save as..." menu item:

Enter new View name and click "Save":

Check "Save this view as a template for future use?" checkbox if you want to save selected filter/sorting as a Template (see below) instead of applicable View. In this case an optional "Template Description" field will be shown.

New Filter will appear as a View at the Kanban Views Menu. Also it will be applied to the Kanban:

Now user can:

  • select this View to apply a set of filter criteria and sorting order quickly

  • edit filters, orders and save this View or save as another view

  • make this View default

  • share this View (see below)

  • delete this View

Sharing Views

Views can be shared using standard Salesforce sharing mechanism.

Click "share" button in Filter menu to open Sharing form page. Click "Add" button to create a new sharing. Select necessary users/roles/groups/etc. and click "Save":

To share filter with multiple users you can create a public group, add users to this group and use it as a source record of new sharing setting.

How to mark filter as default for users programatically

Below script can be used to mark filter as default for the list of users.

String data = '{"defaultView":"filterName"}'; // JSON string, replace 'filterName' with a name of filter that needs to be set as default
String kanbanId = 'kanbanId'; // id of Kanban filter belongs to
List<User> users = [select Id, Name from User where Name = 'System Admin' or Name = 'Test User']; // select users filter will be shared with
List<FLX_KB__KanBan_Config_Custom__c> configToInsert = new List<FLX_KB__KanBan_Config_Custom__c>();
for(User u : users)
{
   configToInsert.add(new FLX_KB__KanBan_Config_Custom__c(FLX_KB__Assignee__c = u.id, FLX_KB__Data__c = data, FLX_KB__Source_ID__c = kanbanId, FLX_KB__Type__c = 'FiltersConfig'));
}
if(configToInsert.size() > 0) insert configToInsert;

Configure custom sources

Dashboard administrators can define their custom filter sources with restricted sets of fields. This can be useful in situations when it is not necessary to give user all object fields.

A popup will appear. On the "Basic configuration" subtab of it:

  • specify the filter source Label (that will be shown in the sources picklist on the Kanban)

  • set filter source Name

  • select Source Type

If the source type is SObject, a "Source Object" picklist will appear; select a source object. Available source objects are the same as were configured for the kanban columns.

Select Fields from the Source Object, that will be available for user to select in filters:

Go to "Availability Configuration" subtab and select columns which this source will be applicable for:

Save filter, filters configuration and kanban. Now when user opens filters and selects this custom source, he will be able to select fields and columns from restricted sets.

If the Source Type is Picklist or Static Text, administrator should configure some Apex properties. He should specify Title, select available Operators, choose Value and configure it:

Availability configuration is configured in the same way as for SObject Source filters.

Transmitting Filters to Other Places

User can take filters currently applied to column(s) and pass them to other place where they are needed.

For example, we have a Kanban that shows Opportunities of some specific delivery/installation status in every column, and we want to show all entries related to each column in separate list. We do:

Create a form named "Opportunity form" with these elements:

  1. Variable of String type with this value: FORMULA[IF(ISBLANK({$FormParameters.filters}), '', ' and ' + {$FormParameters.filters})]

  2. List that has these properties:

    • Source Object: Opportunity

    • Conditions: DeliveryInstallationStatus__c = '{$FormParameters.dis}' {$Form.$Variables.filters}

  3. Add some static text which will contain {$Form.$Variables.filters} text - this will allow to see filter criteria actually passed to the form.

Create standard kanban, add 3 columns there. Columns should have these properties:

  • Data Source: Opportunity

  • Conditions: Delivery/Installation Status equals "In progress" / "Yet to begin" / "Completed" (different for each column)

Add a cell in each column header, with these properties:

  • Type: Text

  • Value: {$Column.Name}

  • Handler with these properties:

    • Type: Form

    • Value: Opportunity form

    • Open in: New Window

    • Parameters:

      • filters= {$Column.Filters}

      • dis = "In progress" / "Yet to begin" / "Completed" (different for each column)

      • mode = edit

Add a card to represent opportunities (with name, Delivery/Installation Status and Stage fields).

Save and open the newly created kanban. Click on Filters sidebar and set some filters and filter logic. Apply the filtering set.

Click on the header of the column which is affected by these filters. Form will be opened in the new tab and will show the full list of opportunities matching these criteria:

  • Delivery/Installation Status is equal to form handler parameter "dis"

  • Stage is matching the filters set (StageName = "Closed Won" OR StageName = "Qualification") - that was the purpose of this example:

Select an Object in the proper picklist. Note: this picklist is shown only if there are columns with different in the kanban and/or are configured. For kanbans with only one Data Source and without Custom Filters this picklist will be absent.

Open and click "edit" link next to "Config" label at the right sidebar and go to "Filters Configuration" tab. Click "+" button to add a filter:

πŸ‘“
Data Sources
Custom Filters
Kanban editor
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing