When to Use multiItem
UsemultiItem: true when a column binding path points to a many-to-many relationship in the domain model. In these cases, a single parent entity can link to multiple child entities, and those child entities can also link back to multiple parents. Common scenarios include:
- Verification test cases linked to requirements
- Validation test cases linked to requirements
- Risk controls linked to hazards
multiItem: true, the column treats the binding as a single-value reference and only displays one item.
Step 1: Verify the Domain Model Relationship
Before configuring the column, confirm that the relationship in your domain model is defined as many-to-many. The relationship must use an association entity type to connect the two sides. For example, aSystemRequirement linked to multiple VerificationTestCase entities:
Step 2: Add the multiItem Column
In thecolumns section of your sheet configuration, add a column whose key is the full binding path to the collection navigation property. Set multiItem: true:
| Property | Type | Default | Purpose |
|---|---|---|---|
multiItem | boolean | false | Enables multi-value display and editing for collection columns |
display | string | id | Which property of the referenced entity to show (title, titleOrName, or a custom property path) |
multiItem is true, the cell renders all linked entities as a list and provides a multi-reference picker for adding or removing items.
Step 3: Configure the Sources Expansion
Thesources section must include an expand entry for the collection relationship. Without this expansion, the column has no data to display:
expand entry corresponds to a navigation property in the domain model. The names must match exactly.
Step 4: Configure the Picker Search
For multi-item columns, add alist property to control the reference picker dropdown. The list.search array defines which entity properties users can search when selecting items:
list.search— array of property names the picker searches against as the user typeslist.createNew— set totrueto allow creating a new entity directly from the picker dropdown without leaving the sheet
Step 5: Add Multi-Level Multi-Item Columns
In a full traceability matrix, you may need multi-item columns at multiple levels of the hierarchy. Each level requires its own expansion path insources:
expand section. Every dot-separated segment must have a corresponding expansion entry.
Step 6: Optional Column Settings
You can combinemultiItem with other column properties for additional control:
isReadOnly— prevents editing while still displaying linked itemscolumnGroup— assigns the column to a visual group (see Configure a Column Group)formatter— applies conditional styling (see Configure a Formatter)visible— set tofalseto hide the column in the default view while keeping it available in named views (see Create a View)
Verify Your Configuration
After saving the sheet configuration:- Reload the powersheet document
- You should now see the multi-item column displaying linked entities as a comma-separated list in each cell
- Click a cell in the multi-item column — a reference picker should appear, allowing you to search, add, or remove linked entities
- If the column appears empty, check that the
expandpath insourcesmatches the column binding path exactly
The multi-reference picker behavior (including search results and the “Add New” option) depends on the server-side query configuration. If the picker returns unexpected results, verify that the domain model relationship and expansion paths are correctly defined.
See Also
- Add a Column — basics of column configuration and binding paths
- Configure Sources — defining data sources and expansion paths
- Configure a Column Group — organizing multi-item columns into visual groups
- Add External Reference Column — linking to entities outside the current document
- Fix Multi-Item Column Errors — troubleshooting common multi-item issues
- Create Bidirectional Links — setting up the domain model relationships that multi-item columns depend on