Skip to main content

Configure saved views

Saved views allow administrators to pre-configure specific column sets that users can switch between. This is useful when different teams or workflows need different column layouts. Define saved views in the views section of your risksheet.json configuration:
"views": [
  {
    "name": "Risk Assessment",
    "columnIds": [
      "item",
      "failureMode",
      "severity",
      "occurrence",
      "rpn"
    ]
  },
  {
    "name": "Mitigation Tracking",
    "columnIds": [
      "item",
      "failureMode",
      "task",
      "taskStatus",
      "taskAssignee"
    ]
  },
  {
    "name": "Hide Mitigations",
    "columnIds": [
      "@all",
      "-task",
      "-taskTitle",
      "-taskStatus",
      "-taskAssignee"
    ]
  }
]
View Definition Format:
PropertyDescription
nameDisplay name shown in the dropdown menu
columnIdsArray of column IDs controlling visibility
@allStart with all columns visible
-columnIdExclude a specific column (prefix with -)
defaultViewSet to true to make this the default view (optional)
After saving the configuration, users can select views from the dropdown in the RISKSHEET toolbar:

Set a default view

Starting with version 24.1.0, you can configure which view displays when users first open the RISKSHEET. Static default - Add "defaultView": true to any view:
{
  "name": "Risk Assessment",
  "defaultView": true,
  "columnIds": ["item", "failureMode", "severity"]
}
Dynamic default - Use a script in risksheetTopPanel.vm to set the default view based on context (user role, project, etc.):
<script>
  // Set second view as default
  risksheet.appConfig.views[1].defaultView = true;
  
  // Or conditionally based on user role:
  #foreach($r in $securityService.getRolesForUser($securityService.getCurrentUser()))
    #if($r.equals("admin"))
      risksheet.appConfig.views[0].defaultView = true;
    #end
  #end
</script>

Use the column selector

Users can also show/hide individual columns without using saved views. Click the Select Visible Table Columns option in the toolbar menu: diagram This method allows per-session customization but does not save preferences between sessions.
  • Saved Views: Pre-configure common column sets for different workflows (design review, risk assessment, mitigation tracking). Requires admin configuration but provides one-click switching.
  • Column Selector: Quick ad-hoc hiding of columns for individual users. Resets when the page is reloaded.
  • Ensure columnIds reference valid column id values from your column definitions, not the header or bindings properties.
  • Using @all followed by exclusions (-columnId) is more maintainable than listing every column individually when you only want to hide a few columns.
  • The column selector changes do NOT persist between sessions - users must reselect their preferences each time they open the RISKSHEET.
Saved views are admin-defined and shared across all users. Users cannot create their own saved views - they can only select from pre-configured options or use the temporary column selector. If users need personalized column sets that persist across sessions, administrators must create saved views for them.

Verification

After configuring saved views, you should see:
  • A dropdown selector in the RISKSHEET toolbar showing all configured view names
  • Switching views instantly shows/hides the specified columns
  • The default view (if configured) displays automatically when opening the RISKSHEET
  • Column selector shows checkboxes for all available columns

See also

KB ArticlesSupport TicketsSource Code
  • ToggleReviewCommand.ts
  • ColumnsHelper.ts
  • AppConfig.ts
  • ExportToPdf.ts
  • ResetColumnsCommand.ts