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.
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:| Method | Return Type | Description |
|---|---|---|
NextedyPageParamsApi.show() | void | Open the widget parameter editor panel. |
NextedyPageParamsApi.close() | void | Close the widget parameter editor panel. |
NextedyPageParamsApi.load(params) | void | Load specific parameter values into the editor panel. |
NextedyPageParamsApi.anyParams() | Boolean | Return true if the Gantt widget has any configurable page parameters. |
NextedyPageParamsApi.isVisible() | Boolean | Return true if the parameter editor panel is currently open. |
NextedyPageParamsApi.setHeader(text) | void | Set the header text of the parameter editor panel. |
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
| Condition | Toolbar Button |
|---|---|
| Gantt is in maximized mode AND page parameters exist | Settings button (gear icon) is visible |
| Gantt is not maximized | Settings button is hidden |
MaximizeGanttView=false URL parameter is set | Settings button is hidden |
| No page parameters defined on the wiki page | Settings button is hidden |
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
Sources
Sources
KB ArticlesSupport TicketsSource Code
prod-gantt-src/com.nextedy.polarion.gantt.client/src/js/pageparams.jsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/view/pageparams.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/src/types/pageparams.d.tsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/util/WidgetPropertiesAccess.javaprod-gantt-src/com.nextedy.polarion.gantt/webapp/pageparams/pageparams.html