How Page Parameters Work
Page parameters are standard Polarion Rich Page parameters placed on the same wiki page as the Gantt widget. When the Gantt runs in maximized mode, a Settings button appears in the toolbar that opens the Page Parameters panel, allowing users to modify parameter values without editing the wiki page.Setup Steps
- Add a Page Parameters widget to the top of your wiki page
- Add the Gantt widget below it (keep Maximized turned OFF initially)
- Define your page parameters in the Page Parameters widget
- Reference the page parameters in your Gantt widget parameters using Velocity syntax
- Test that the page works correctly with the parameters
- Turn the Maximized option ON in the Gantt widget parameters
Accessing Page Parameters in Item Script
Read page parameter values in the Item Script using theconfig object:
"pageParamId" with the ID of the page parameter you defined in the Page Parameters widget.
config exposes page parameters two equivalent ways: the method form config.getPageParameters().get("id") (used here) and the shorthand property form config.pageParameters.<id> (used in the Markers Script examples below). Both read the same values — use whichever reads better.Example: Filter by Version
Accessing Page Parameters in Markers Script
Page parameters are also available in the Markers Script for dynamic marker filtering:Page Parameters Panel API
The Page Parameters panel provides methods for programmatic control:The
NextedyPageParamsApi methods are available on the client side for advanced customization. Typical usage relies on the built-in toolbar button rather than direct API calls.Toolbar Button Behavior
The Page Parameters panel opens as a scrollable dialog overlay (maximum height 80% of viewport). Close it by clicking the X button or pressing Escape.
Configuration Example
A wiki page setup with a page parameter for version filtering: Page Parameters Widget: Define a parameter with IDversion and type String.
Gantt Widget Parameters:
- Query:
type:feature AND version:$version(Lucene + Velocity query type) - Maximized: ON
Related Pages
- Item Script API —
config.getPageParameters()usage in server-side scripts - Marker Factory API — using page parameters for dynamic marker filtering
- Velocity Context Variables — server-side variables available alongside page parameters
- Gantt Config Script API — client-side templates that display parameter-based data
- Work Items Gantt Widget Parameters — Maximize and query type settings
- URL Parameters Reference —
MaximizeGanttViewURL parameter