Prerequisites
Before configuring read-only columns, ensure you have:- A working sheet configuration YAML file
- Access to the project’s sheet configuration in Administration > Nextedy Powersheet
- Familiarity with the column properties available in Powersheet
1
Set isReadOnly on a Column
Add The
isReadOnly: true to any column definition in your sheet configuration to disable editing for that column:isReadOnly property accepts a boolean value and defaults to false. When set to true, cells in that column cannot be modified regardless of user permissions or formatter rules.2
Add Visual Feedback with a Read-Only Formatter
Setting This approach provides both functional protection (the cell cannot be edited) and a visual indicator (the grey background signals read-only status to users).
isReadOnly: true prevents editing but does not change the column’s appearance. To add a visual cue so users can immediately see which columns are non-editable, combine the property with a formatter:grey100 is one of Powersheet’s built-in color tokens. For the full palette of valid token names (each color family runs from 100 lightest to 700 darkest) and the predefined style names, see the Styles reference.3
Use Conditional Read-Only with Formatters
For columns that should be read-only only under certain conditions, use a formatter with a conditional expression instead of a static In this example, the
isReadOnly flag:title column becomes visually styled as read-only when the work item’s Status is Approved. The formatter expression has access to the context object, which provides:context.entity— the current entity (row data)context.value— the current cell valuecontext.document— the document data
Verify in applicationConditional formatter expressions apply visual styling. To fully enforce editing restrictions based on status, combine formatters with data model constraints or document-level permissions.
How Read-Only Resolution Works
Powersheet evaluates multiple conditions to determine whether a column is editable. A column becomes read-only if any of these conditions are true:- Configuration flag —
isReadOnly: trueis set on the column in the sheet configuration YAML - Historical revision — The user is viewing a past revision of the document (all columns automatically become read-only)
- User permission — The document access control grants the user only viewer (not editor) access
- Computed column — The column declares a
valueexpression, so its content comes from the expression rather than from input
Computed columns are read-only by definitionA column with a
value expression takes its content from that expression, so declaring isReadOnly: true on it is redundant. A column whose binding key is $-prefixed goes further: it is unbound, stores nothing, and is forced read-only — not only in the editing UI but on every write path, so paste and fill cannot change it either. See Add a Computed Column.System-managed and server-rendered columns are always read-onlyCertain columns such as
outlineNumber are inherently managed by Polarion and should always have isReadOnly: true. In addition — this is the canonical rule referenced from the server-rendering pages — any property that defines a serverRender annotation, or that has updatable: false in the data model, is automatically read-only regardless of the sheet configuration. For server-rendered properties this override cannot be disabled: even updatable: true is ignored, because the value is always recomputed from the template.Complete Configuration Example
Here is a full sheet configuration excerpt showing multiple read-only patterns in a requirements traceability context:outlineNumberandidare always read-only with grey background stylingtitlebecomes visually styled when the item status isApproved- The expanded
systemRequirement.idcolumn is read-only since IDs should not be user-editable systemRequirement.titleremains editable (noisReadOnlyflag)
Property-Level Permissions in the Data Model
You can also control editability at the data model level using thereadable and updatable properties on entity type definitions:
When
updatable is false, the column becomes read-only for that property regardless of the sheet configuration isReadOnly setting.
updatable defaults to false for every property, ordinary ones included — a property is read-only unless you explicitly set updatable: true. A property with a serverRender annotation is read-only too, but for a different reason: Powersheet forces its effective value to false and ignores any updatable: true you set (see the Velocity Templates reference) — unlike an ordinary property, an explicit override can never make it editable.Verification
After saving your sheet configuration changes, reload the Powersheet document in Polarion:- Open the sheet and click on a cell in the read-only column — you should see that the cell does not enter edit mode and the selection marquee shows a read-only indicator
- If you applied a formatter, verify the grey background (or your custom style) appears on the read-only cells
- Try pasting into a read-only column — the paste operation should be blocked
- Confirm that editable columns next to the read-only ones still accept input normally
See Also
- Add a Column — basic column setup and property binding
- Add a Computed Column — columns whose content comes from an expression, and are therefore read-only
- Configure a Formatter — conditional formatting and style rules
- Apply Column Styles — custom visual styling for columns
- Configure Permissions — document-level access control
- Sheet Configuration Reference — complete property reference