This guide describes column grouping and the
collapseTo behavior using the verified column properties headerGroup and collapseTo. The exact UI affordance for collapsing a group (header click, group menu, or keyboard shortcut) may vary by Nextedy RISKSHEET version — confirm the click target in your environment.When to use column groups
Column groups are useful when a Risksheet configuration contains many columns and the analyst wants to switch between a detailed and a summary view without creating separate saved views. Typical examples:- Failure Mode and Effects Analysis (FMEA) sheets that group the Initial Assessment, Mitigation, and Final Assessment columns
- Hazard Analysis and Risk Assessment (HARA) sheets that group ASIL components (severity, exposure, controllability)
- Threat Analysis and Risk Assessment (TARA) sheets that group impact and feasibility ratings
collapseTo: true, which remain visible as the group’s representative summary.
How grouping and collapsing fit together
1
Decide which columns belong to a group
Pick columns that always make sense together for the analyst. A column group works best when:
- The columns share a domain meaning (for example, all parameters that feed the same Risk Priority Number).
- The analyst frequently toggles between a “detail” mindset (entering severity, occurrence, detection) and a “summary” mindset (reading RPN).
- At least one column in the group is a calculated or rolled-up value that can stand in for the rest when collapsed.
2
Add `headerGroup` to each member column
Open the sheet configuration through Menu > Configuration > Edit Risksheet Configuration. In the The
columns array, set the same headerGroup string on every column that belongs to the group:headerGroup value becomes the merged header bar displayed above the member columns. Any number of groups can coexist in the same sheet — just use distinct headerGroup strings (for example, Initial Assessment, Mitigation, Final Assessment).3
Pin a summary column with `collapseTo`
Add
collapseTo: true to the column that should remain visible when the group is collapsed. Typical choices are:- The calculated RPN (or any composite score)
- A classification column such as ASIL or risk class
- A status column that summarises the group
4
Save and reload the document
Save the sheet configuration. Reload the Polarion LiveDoc that hosts the risksheet so the new grouping takes effect. The grid renders a second header row showing the group name, with the member columns aligned underneath.
5
Collapse and expand the group
In the rendered grid, click the group header to collapse all member columns down to those flagged with
collapseTo: true. Click again to expand the group back to its full set of columns. The collapsed state is per-user and per-session — it does not modify the sheet configuration.If you want a specific collapsed-by-default layout for every analyst, combine column groups with a saved view: define a view that excludes the detailed columns, and another that includes them all. See Create Saved Views for the columnIds, @all, and -columnId syntax.Pitfalls and tips
Verification
You should now see:- A merged header bar labelled with your
headerGroupvalue above the member columns. - Clicking the group header collapses all member columns except the one with
collapseTo: true. - Clicking the collapsed header expands the group back to the full column set.
- The collapse state persists for the current session but does not change the stored sheet configuration.
See also
- Create Saved Views — persistent named column subsets, complementary to runtime collapse.
- Control Column Visibility — broader strategies for showing and hiding columns.
- Display Multi-Level Hierarchies — using
levelandcontrolColumnfor cell merging. - Configure Calculated Columns — formulas suitable for summary columns kept visible on collapse.
- Use the Configuration Editor — YAML editing workflow for the sheet configuration.