The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content

Views: where your application lives

2612

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 form extension panel below the field sections of a work item

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.

Form extension in detail →

The Show Sidebar menu listing an application sidebar next to the built-in ones

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.

Sidebar in detail →

A navigation topic rendered as a full page

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.

Navigation topic in detail →

Comparison

Form extensionSidebarNavigation topic
Manifest listviews.formExtensionsviews.sidebarsviews.navigationTopics
Switched on byapplicationView in the form layoutnothing (listed in Show Sidebar)applicationView in the Topics configuration
Context knowsproject, work itemproject, selection, documentproject
Events–selection-changed–
Spacepanel of configurable heightnarrow column, full heightwhole content area
Lifetimeper work itemwhile the table or document is openwhile the page is open

Choosing a view type

You want to…Use
Show or edit something about the work item the user is looking atForm extension
React to what the user selects in a table or documentSidebar
Offer a tool or report at project levelNavigation topic
Do several of the aboveSeveral 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 localStorage of the common origin.
  • The context always contains applicationId, viewId, restBaseUrl, appEndpoint and, 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.css is a starting point.
  • The context carries no UI language or locale. Set lang on 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.