CubeView Extender Business Rules
CubeView Extender Business Rules apply advanced formatting to Cube Views in Report view — dynamic headers, logos, page numbering, and conditional styling that goes beyond the built-in formatting properties. This guide covers configuration, common use cases, substitution variables, and code examples.
What CubeView Extender Rules Do
CubeView Extender rules run when a Cube View renders in Report view (PDF-style output). They do not affect the Data Explorer grid view. The rule receives the rendered report object and can modify headers, footers, cell formatting, and layout before the final output is generated.
Use CubeView Extender rules when you need formatting that:
- Changes dynamically based on the POV (different logo per entity, different title per scenario)
- Requires logic (conditional styling based on data values or user context)
- Involves report elements not available in built-in properties (custom page numbering, footer fields)
Configuration
Setting Up a CubeView Extender Rule
- Create a Business Rule of type Finance (CubeView Extender is a Finance rule sub-type)
- On the Cube View's General Settings, under Report properties, set:
- CustomReportTask =
ExecuteCubeViewExtenderBusinessRule - CubeViewExtenderBusinessRuleName = the name of your Business Rule
- CustomReportTask =
Inline Formula Alternative
For simple expressions that don't require a full Business Rule, use the inline formula approach:
- CustomReportTask =
ExecuteCubeViewExtenderInlineFormula - InlineFormula = the expression to evaluate
Inline formulas are limited to simple property assignments. Use a full Business Rule for anything involving conditional logic, loops, or multiple formatting changes.
Substitution Variables in Cube Views
Cube Views support substitution variables in report headers, footers, and other text fields. Variables resolve at runtime based on the current context.
Variable Categories
| Category | Prefix | Example | Resolves To |
|---|---|---|---|
| POV | POV. | POV.Entity, POV.Scenario, POV.Time | Current POV member name |
| Workflow | WF. | WF.ProfileName, WF.ScenarioName | Current workflow context |
| Global | Global. | Global.AppName | Application-level settings |
| CV | CV. | CV.Name, CV.GroupName | Cube View properties |
| MF | MF. | MF.RowName, MF.ColName | Member filter properties |
| General | — | CurrentDate, PageNumber, TotalPages | General report variables |
Using Variables in Headers and Footers
The Cube View designer provides Report Header and Report Footer sliders for adding header and footer fields. Each field can contain substitution variables:
Common Use Cases
Dynamic Logos Based on Entity
Display a different company logo based on the selected entity:
Custom Page Numbering and Subtitle
Alter Column and Row Headers Dynamically
Change header labels based on the POV context — useful when the same Cube View is used across different scenarios or time periods:
Related Content
- Data Input with Cube Views — Previous guide: configuring Cube Views for data entry
- Report Books — Next guide: compiling Cube Views into distributable packages
- Getting Started with Business Rules — Business Rule fundamentals, including rule types and the development workflow
- Workflow Substitution Variables — WF-prefixed substitution variables available in Cube View headers