Controls

The Controls menu provides a variety of tools to help you interact with your data in Deephaven's web interface, including filters, markdown widgets, and more. Access the Controls menu by clicking the Controls icon in the navigation bar:

The Controls menu highlighted in the navigation bar

From the Controls menu, you can access the following tools:

The Controls dropdown menu

Input Filter

Input Filters apply your specified filter to all tables and dynamic plots in your dashboard.

The InputFilter screen, where a user can select a filter column

Once you choose a Filter Column from the drop-down list in the Input Filter panel, you will be prompted to enter a value. The filter statement options available in Quick Filters are based on the data types in each column being filtered. See Quick Filter Statement Options in the Appendix for a complete list. The Sym column has been chosen in the following examples. Once you enter a value, the filter will be immediately applied to your dashboard.

A user filters by a specific value (GOOG) in the Sym column

Note that Input Filters will only work on dynamic plots with a selectable dataset, which must be configured using the appropriate plotting methods.

Dynamic plots will not draw until a filter is applied. You can add an Input Filter from the Controls menu, or the button in the plot's panel:

An overlay appears stating that a filter control or table link is required to display the plot, with buttons to add the Input Filter or open a Linker Tool

Tip

You can also use the Linker tool with dynamic plots.

Closing the Input Filter panel removes all the associated filters from the dashboard's dynamic plots.

The Dropdown Filter control takes a source column as an input and filter column as an output. It uses the source column to create a dropdown list of filter options. Selecting a value from this list filters all columns in the dashboard that match the filter column name by the selected value.

The dropdown list expects unique values for the column source. It is recommended that you create a new table with just the column of interest, and apply a select_distinct to get a list of unique values. You can also exclude values by further filtering the Select Distinct table. You can sort the options list by sorting the source column.

Once you add a Dropdown Filter widget to the dashboard from the Controls menu, you will be prompted to choose a source column. Click the Source Column button and move your cursor to the desired column:

A user creates a link between a source column and table column

Note

Dropdown lists are user-friendly for a small number of options. We enforce a max number of 256 option values.

Click Done, then choose an appropriate Filter Column:

A user selects a source and filter column, then clicks Save

The Dropdown Filter automatically populates a dropdown list of the available values in the source column. Choose any value to filter all the tables in your dashboard that include the selected Filter Column. Sorting and filtering the source table will update the values in the Dropdown Filter.

For example, the Dropdown Filter below first links to the USym column in a small table of values. The subsequent dropdown list is used to filter the USym column in the other open table to the selected value:

A user filters by the BAC value in the USym column

To edit your configuration, click the gear icon at the top right of the Dropdown Filter widget:

The gear icon highlighted at the top right of the Dropdown Filter widget

Deleting a source column or closing the source table unlinks the Dropdown Filters.

Markdown Widget

The Markdown Widget is a tool for including text (or images) in the Deephaven Web interface. These notes can include references to:

  • the queries running in a Dashboard.
  • code snippets/explanations.
  • instructions/comments.
  • messages to customers, clients, or coworkers.
  • contact info.
  • and more.

Once a Markdown Widget has been added to the interface from the Controls menu, its content can be edited by double-clicking in the panel.

A Markdown Widget in the Deephaven UI

The Markdown Widget uses GitHub-flavored markdown syntax.

Manage Markdown Widgets

Markdown Widgets are saved with the Dashboard or Code Studio in which they were originally created. If the Markdown Widget is open when the dashboard is closed, the Widget will remain paired when it is reopened.

If a Markdown Widget is closed during your session, it can be retrieved by selecting Markdown Widget from the Controls menu, and then clicking its name from the Recently Closed list:

A closed note displaying the Recently Closed from Dashboard list

Hovering your cursor over the name of a widget will reveal the trash can icon, which you can click to permanently delete the widget.

The Delete icon highlighted next to a widget name

Filter Sets

Filter Sets capture the current state of all filters applied across the current dashboard (including plots, tables, etc.) into one "set" that you can then reapply at a later time.

Capture the current state as a new filter set:

The Capture filter set button

Now, name the set:

An empty field in which the user can enter the name of the captured filter set, then save the set or cancel

After you have saved your first filter set, you can access a drop-down list of all available sets:

A drop-down list of available sets

The Filter Sets panel will now show three options: Update, Edit, or Delete:

The Update, Edit, and Delete buttons highlighted

Linker

Deephaven's Linker feature enables a user to interactively filter the content in one table based on the content selected in another table. The objects must first be "linked" with each other, with one table as the source and one or more other tables as the target(s). When a cell in the source table is double-clicked, the respective columns in the target table are filtered to that value.

Note

You can only link columns of the same data type.

When you select the Linker tool from the Controls menu, the following instructions will appear:

Instructions on how to use the Linker tool

After you click a column source, an arrow will appear as you drag your cursor to your desired target. In the example below, the Sym column in t2 (the source table) is linked to the Sym column in t1 (the target table).

An arrow appears indicating the source and target as the user drags the cursor to the desired target

Note

The default operation is an equals filter, but can be changed after establishing a link.

Click Done to save your changes.

Now that the tables are linked, double-clicking on a row in the Sym column in t2 will automatically filter the contents of t1. In this example, double-clicking on GOOG in the source table filters the target table to show only rows with the GOOG symbol:

A user creates a link between two tables and then double clicks on the GOOG symbol to filter the target table to only rows that match that value

You can also link multiple tables at once:

A user links a single source table to two target tables at once

After you've linked tables, your selections are saved and will reopen to allow you to edit or clear the links when you access the Linker.

The Linker tool is also compatible with dynamic plots, which must be configured using the appropriate plotting methods.

A user creates a link between a table and a dynamic planet

Click Clear All to remove your links. Use Remove All Filters or Remove Column Filter in the table context menu to restore the tables to their original state.

Actions

The Actions tab in the Controls menu provides options to clear all filters, and to reset Replica workers.

Clear All Filters

The Clear All Filters option in the Controls menu

The Clear All Filters button removes all filters of any type in the active dashboard at once.

Reset All Replicas

Select Reset All Replicas to reset all replica workers in the current dashboard.

The **Reset All Replicas option highlighted in the Controls menu