Step 1: Open the Domain Model
- Navigate to Administration > Nextedy POWERSHEET > Domain Models
- Select the domain model to edit
- Locate the
relationshipssection
Step 2: Define the Relationship with many-to-many Cardinality
Set the cardinality property to many-to-many:
SystemRequirement to link to multiple VerificationTestCase items, and each VerificationTestCase to link back to multiple SystemRequirement items.
Step 3: Define Both Entity Types
Ensure both entity types are defined indomainModelTypes:
Step 4: Configure Columns with multiItem
In your sheet configuration, use the multiItem: true property on columns that display many-to-many relationships:
multiItem flag enables the multi-value picker and displays all linked items in the cell.
Step 5: Configure Sources Expansion
Add the many-to-many relationship to yoursources expansion:
Cardinality Options
| Cardinality | Description | Example |
|---|---|---|
one-to-one | Single item on both sides | Requirement to its unique specification |
many-to-one | Many source items to one target | Multiple tasks to one parent feature |
one-to-many | One source to many targets | One requirement to multiple sub-requirements |
many-to-many | Multiple items on both sides | Requirements to test cases |
Complete Example
Here is a domain model with a three-level hierarchy including many-to-many:Verify
After saving the domain model and sheet configuration, open your powersheet document. You should now see:- Many-to-many columns display multiple linked items per cell
- The picker dialog allows selecting and linking multiple target items
- Unlinking removes the association without deleting the entity
See Also
- Create Bidirectional Links — set up forward and reverse navigation
- Configure a Relationship — relationship fundamentals
- Configure Multi-Item Column — column display for multi-item relationships
- Create a Link — creating links through the sheet UI
Source reference
Source reference
PowersheetConstants.java, Relationship.java, m-n.spec.ts, RowItemFactory.ts
Sources
Sources
KB ArticlesSource Code
DatabridgeConstants.javaDatabridgeMetadata.javaMetadataTest.javaprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/RowItemFactory.tsprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/SheetComponent.tsx