For the complete documentation index, see llms.txt. This page is also available as Markdown.

Grid as Search and Select

Wave Grid isn't limited to editing records inline. The same Grid can act as a selection screen, letting a user browse and choose one or many records to drive something else entirely, in this case, launching one or more Matrix views.

A user needs to review the same set of records two different ways, for example how revenue breaks down month by month, and how it rolls up by quarter for forecasting. Building two separate report views means keeping both in sync every time the record list changes.

Instead, the user uses a Grid as a selection screen. They search for and check off the records they want to analyze, then run the selection into Matrix.

Grid used to select one or many records before launching Matrix

From there, the user chooses how many Matrix views to launch and how each one is configured. In this case, two:

  • Monthly Revenue Matrix groups the measures by month, useful for tracking near-term pace

  • Quarterly Forecast Matrix groups the same measures by quarter, useful for forecasting conversations

Monthly Revenue Matrix and Quarterly Forecast Matrix, both built from the same selected records

Because every Matrix view is built from the same selection, the user never re-picks records or reconciles separate lists between views. Select once, then configure as many Matrix views as the analysis needs, each with its own Timeline grouping.

This is one of the ways Wave Grid's versatility shows up: beyond bulk editing, it works equally well as a lightweight selection tool feeding other components, like Matrix.

Grid as Search and Select

How This Is Built

NOTE

The following section is intended for the development or technical team. It covers the Aura component setup used to build this use case.

This use case is built within a single Aura component, which combines a Grid for selection and one Matrix instance per view.

Components Used

  • ValorxRapidGrid — An embeddable grid, configured in Wave, that lists the records to choose from. Its selection is exposed through outputRecords.

  • MatrixRuntime — Renders a saved Matrix (built in Wave) for the record IDs passed to its recordId attribute. Use one instance per Matrix view.

Build Steps

  1. Drop the grid in for selection. Point it at the configured grid and bind its output to an attribute:

  1. Convert the selection into a comma-separated ID string. When the user confirms their selection, parse outputRecords (a JSON string of selected rows) down to the record IDs the Matrix expects. This requires a custom helper function, for example:

NOTE

extractIds is not a built-in method. It is custom Apex/JS the development team writes to parse outputRecords into the ID format Matrix expects.

  1. Feed the IDs into each Matrix. Bind the same ID string to every MatrixRuntime instance. Each renders its own saved Matrix definition:

Key attributes

Component
Attribute
What it does

ValorxRapidGrid

gridId

The Wave grid to render (Object::UUID)

ValorxRapidGrid

outputRecords

Bound attribute that receives the selected rows

ValorxRapidGrid

canChangeGrid

false locks the grid to the configured one

MatrixRuntime

matrixId

The saved Matrix definition to render

MatrixRuntime

recordId

Comma-separated IDs driving the Matrix

TIPS

Last updated

Was this helpful?