title, a subtitle, and an icon. Because each can be computed from the current document, project, and URL parameters, one configuration used across many variants or projects tells you at a glance that you are on the right one, without going back to Polarion to check.
Each of the three is either a static value or a single dynamic value expression (() => …). They are top-level keys in the sheet configuration, alongside sources, columns, and views:
The three fields
Evaluation context
A() => … header expression receives the same context object as other dynamic values, so the header can be driven by the sheet’s surroundings. The fields most relevant here:
For the complete object see Context Expressions. Reading a value from the URL is covered under URL Parameters.
Icon values: glyph or image
Theicon value is classified automatically by what it contains:
- A name made up only of letters and digits — for example
Table,AspectRatio,World— is a Fluent (MDL2) glyph, rendered by name. - Any value containing a
/,:, or.is treated as an image source and rendered as an<img>. That covers every practical image form:
The rule is purely the presence of a
/, :, or ., so even a bare filename with an extension (worksheet.png) is taken as an image rather than a glyph. If an image source fails to load, the icon is simply omitted rather than showing a broken-image placeholder.
Fallback and suppression
Each field decides independently what to show when it is omitted or resolves to nothing. An expression that resolves to a falsy value (false, null, "", undefined) suppresses the field — it never prints the literal text false.
Two consequences worth noting:
- Because
icondefaults to thetableglyph,icon: falseis the only way to render a sheet with no icon. - A
titlethat evaluates to empty behaves exactly like an omittedtitle: the document name becomes the heading, and (unless you set asubtitle) it is not also repeated as the subtitle.
Worked example
This RTM configuration varies all three fields by asubtype URL parameter, so …&subtype=electrical and …&subtype=mechanical open the same sheet under distinct, self-describing headers — while a plain link with no subtype falls back to the document’s own name and the default icon:
…&subtype=electrical the header reads Type: electrical over a project-and-document subtitle, beside the AspectRatio glyph. Open the same sheet with no subtype and the subtitle’s expression resolves false (so it is hidden), the title falls back to the document name, and the icon defaults to table.
Related
Dynamic Value Expressions
The
() => … syntax used by all three header fields.URL Parameters
How
context.parameters.<name> values reach the header from the sheet’s URL.Context Expressions
The full
context object a header expression can read.Open a Scoped Sheet with URL Parameters
A task that reflects a URL parameter in the header.