Source Properties
| Property | Type | Default | Description |
|---|---|---|---|
sources | array | [] | Top-level array of data source definitions. The first source (sources[0]) is the primary data source for the sheet. |
sources[].id | string | None | Unique identifier for this data source within the configuration |
sources[].title | string | None | Human-readable label for this data source, displayed in the Powersheet UI |
sources[].model | string | None | Reference to the domain model that defines entity types and relationships. Can be a static name or a dynamic expression using $context.parameters.model. |
sources[].query | object | None | Query definition specifying which entities to load |
sources[].constraints | object | None | Optional constraints applied to the source query |
sources[].expand | array | [] | Defines expansion paths for loading related entities through domain model relationships |
Query Properties
| Property | Type | Default | Description |
|---|---|---|---|
sources[].query.from | string | None | Root entity type to query. Must be a valid entity type defined in the referenced domain model. |
sources[].query.where | string | None | Filter predicate for the query. Supports Polarion Lucene query syntax. Template placeholder <WHERE> is replaced at runtime. |
sources[].query.take | string/number | None | Maximum number of records to return. Template placeholder <TAKE> is replaced at runtime. |
Constraint Properties
| Property | Type | Default | Description |
|---|---|---|---|
sources[].constraints.applyCurrentDocumentTo | string | None | Filters the specified entity type to only include items from the same Polarion document as the current context. Can target the root entity or a downstream related entity type. |
Expand Properties
| Property | Type | Default | Description |
|---|---|---|---|
sources[].expand | array | [] | Array of expansion definitions. Each entry loads related entities through a domain model relationship. |
sources[].expand[].name | string | None | Navigation property name to expand, as defined in the domain model relationships |
sources[].expand[].title | string | None | Display title for the expanded entity group in the sheet header |
sources[].expand[].expand | array | None | Nested expansion for loading multi-level relationships. Same structure as the parent expand. |
Source Data Flow
Basic Source
Multi-Level Expansion
Nestedexpand definitions load entities through multi-level domain model relationships:
Dynamic Model Reference
Themodel property can use a dynamic expression to resolve the model name from document parameters at runtime:
Document Constraints
TheapplyCurrentDocumentTo constraint scopes entities to the current Polarion document:
Complete YAML Example
Related Pages
- Domain Model Types — entity types referenced in
query.from - Relationships — navigation properties used in
expand[].name - Binding Syntax — column keys that mirror expansion paths
- Constraints — domain model constraint definitions
Source references: constraints_composing.template.yaml, whole_rtm.template.yaml, constraints_currentDocument_downstream.template.yaml, QueryManager.tsx
Sources
Sources
KB ArticlesSource Code
prod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/constraints_composing.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/src/modules/Powersheet/Powersheet.tsxprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/constraints_currentDocument_downstream.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/src/modules/QueryManager/QueryManager.tsx