Step 1: Define Views in Configuration
Open yourrisksheet.json and add a views array. Each view specifies a name and the list of column IDs to display:
views array requires:
| Property | Type | Description |
|---|---|---|
name | string | Display label shown in the view selector dropdown |
columns | array | List of column id values to make visible when this view is active |
Step 2: Assign Column IDs
Ensure every column in yourcolumns configuration has an explicit id that matches the values in your view definitions. If you omit id, the system auto-generates one from the header or binding, which may not match your view references.
Step 3: Select a View at Runtime
After loading the Risksheet, use the view selector in the toolbar to switch between your defined views. The grid immediately updates to show only the columns listed in the selected view.Step 4: Combine with Personal Column Visibility
Users can further refine which columns appear using the Select visible columns feature, which persists on the user’s local machine. However, switching saved views resets any personal column visibility selections.Saved views are configured in
risksheet.json by administrators. Individual users cannot create personal saved views through the UI. The Select visible columns feature provides per-user customization that persists locally but resets when a different saved view is selected.Verification
You should now see a view selector dropdown in the Risksheet toolbar listing each view by itsname. Selecting a view immediately toggles column visibility to match the defined columns list. Columns not listed in the active view are hidden from the grid.
See Also
- Configure Column Visibility — control visibility per column in the configuration
- Control Column Visibility in Exports — manage which columns appear in exports
- Configure Calculated Columns — set up formulas referenced in views
- Consolidate Multiple Link Columns — combine link columns with saved views for cleaner layouts
Sources
Sources
KB ArticlesSupport TicketsSource Code
AppConfig.tsCommandFactory.ts