Views: where your application lives¶
A view is one web page of your application placed at one kind of location in the Polarion UI. (If you have not read it yet, Application context explains the context object the view pages refer to.) The location is the first decision of every application: it determines what the user is looking at when your page opens, what the framework tells you about the surroundings, and how the administrator switches it on. Polarion 2612 offers three view types; an application may contain any number of each. Sidebars inside Documents and the create form of a new work item are described as the SDK documents them; the screenshots in this guide were taken in the Work Items table and in saved work items.
The three view types¶
Form extension¶
A collapsible panel inside the Work Item form, placed among the fields by the administrator. The view knows which work item is open. Use it for everything that is about this work item: data from other systems, link visualizations, guided editing, checklists.
Sidebar¶
A panel in the sidebar area next to the Work Items table and inside Documents, chosen by the user from the Show Sidebar menu. The view receives the current selection and every change to it. Use it for inspectors, bulk actions and checks on whatever the user selects.
Navigation topic¶
A full page with its own entry in the project navigation. The view gets the whole content area and knows the project. Use it for dashboards, reports, planning boards and editors.
Comparison¶
| Form extension | Sidebar | Navigation topic | |
|---|---|---|---|
| Manifest list | views.formExtensions | views.sidebars | views.navigationTopics |
| Switched on by | applicationView in the form layout | nothing (listed in Show Sidebar) | applicationView in the Topics configuration |
| Context knows | project, work item | project, selection, document | project |
| Events | – | selection-changed | – |
| Space | panel of configurable height | narrow column, full height | whole content area |
| Lifetime | per work item | while the table or document is open | while the page is open |
Choosing a view type¶
| You want to… | Use |
|---|---|
| Show or edit something about the work item the user is looking at | Form extension |
| React to what the user selects in a table or document | Sidebar |
| Offer a tool or report at project level | Navigation topic |
| Do several of the above | Several views in one application, sharing code |
A common combination is a sidebar for selection-driven actions plus a navigation topic for the overview, or a form extension plus endpoints that compute something per work item on the server.
What all views have in common¶
- Each view is an independent page load. Views of the same application do not share JavaScript state; share data through Polarion (REST or your endpoints) or
localStorageof the common origin. - The context always contains
applicationId,viewId,restBaseUrl,appEndpointand, with token authentication enabled,restToken. - A view opened directly by its URL, outside Polarion, gets no context and no events.
- Views do not inherit Polarion's styles. Use a neutral system look so the page feels native; the examples'
styles.cssis a starting point. - The context carries no UI language or locale. Set
langon your page, keep strings in one place if you plan to translate, and make sure keyboard focus works inside the iframe; Polarion does not manage focus for you.
Coming next¶
The framework is designed to accept more view types. Widgets for pages and reports and administration views are planned; see Upcoming: widgets and administration for what to expect and how to structure an application so that adding them later is cheap.


