Understanding Formula Behavior with Hidden Columns
Formulas execute only when their column is visible in the RISKSHEET grid. This behavior is critical when working with calculated fields like auto-generated titles or RPN values.| Column State | Condition | Formula Behavior | Values |
|---|---|---|---|
| Visible | width > 0 | Executes on sheet load | Calculate automatically |
| Hidden | width = 0 | Does NOT execute | Remain stale or empty |
Configure a Formula Column
Method 1: Inline Formula Definition
Define the formula directly inrisksheet.json:
Method 2: Top Panel Script (Recommended)
For complex formulas, define functions in the Risksheet Top Panel: risksheet.json:Store Calculated Values in Polarion
By default, formula results exist only in the RISKSHEET UI and are not persisted to Polarion. To store calculated values: 1. Create a Custom Field in Polarion Administration- Navigate to Administration > Work Items > Custom Fields
- Select the work item type (e.g.,
risk) - Add a custom field with ID matching your column binding (e.g.,
rpn) - Set the field to Read-only in Administration to prevent manual editing
"readOnly": false allows RISKSHEET to write the calculated value back to Polarion during save operations.
Use Saved Views to Control Column Visibility
You can create multiple saved views to show/hide formula columns for different purposes:| View Name | Formula Columns Visible | Use Case |
|---|---|---|
| Display View | Yes | Daily work, item creation |
| Export View | No | PDF/Excel export (formulas already calculated) |
| Review View | Yes | Verification that formulas are correct |
Synchronize Formula Values with ‘Check Stored Formulas’
Starting in version 24.5.1, RISKSHEET includes a synchronization feature for formula columns: When to Use:- After creating work items with hidden formula columns
- When formula logic changes and you need to recalculate existing items
- To verify stored values match current formula definitions
- Open RISKSHEET with formula columns visible
- Navigate to Menu > ** Check Stored Formulas**
- RISKSHEET recalculates all formula columns and compares with stored values
- Review items where calculated values differ from stored values
- Save to synchronize Polarion with calculated values
Common Patterns
Auto-Generated Titles from Multiple Fields
Conditional Formula Execution
Verification
You should now see:- Formula columns calculating values automatically when visible
- Calculated values appearing in Polarion custom fields after save (if
readOnly: false) - The ability to switch between display and export views without losing calculated values
- Synchronization working correctly via ‘Check Stored Formulas’ feature
See also
- Configure Calculated Columns - Basic formula configuration
- Create Saved Views - Managing multiple column layouts
- Control Column Visibility - Show/hide column configuration
- Formula Syntax - Complete formula language reference
- Formula Examples - Common formula patterns
Sources
Sources
KB ArticlesSupport TicketsSource Code
PolarionAppConfigManager.javaAppConfig.tsColumnsHelper.tsrisksheet.jsonCellPreviewFormatter.ts