Step 1: Add a Source Entry
Open your sheet configuration YAML and add an entry to thesources array. Each source requires an id, title, model, and query:
| Property | Purpose |
|---|---|
id | Unique identifier for this data source |
title | Display label shown in the sheet UI |
model | Reference to the domain model ID (defined in Administration > Nextedy POWERSHEET > Models) |
query.from | Entity type name from the domain model to query |
from value must match an entity type defined in your domain model (e.g., UserNeed, SystemRequirement, Hazard).
Step 2: Add a Filter with where
To restrict which entities are loaded, add a where clause to the query. The where clause uses filter predicates:
UserNeed entities whose status is not deleted.
Common filter patterns:
The exact predicate syntax supported in
where clauses depends on the query engine. Simple equality and comparison operators are widely supported. For complex predicate patterns, see Use Predicates.Step 3: Add Sorting with orderBy
Control the default sort order by specifying property paths and directions:
desc after the property path for descending order. You can also configure sorting at the sheet level with sortBy:
Step 4: Add Expansion Paths
To load related entities (for multi-level hierarchical display), add anexpand section to the source:
Step 5: Limit Results with take
For performance, limit the number of entities returned:
Complete Example
Verification
After saving the sheet configuration and opening the associated document:- You should now see the sheet populated with entities matching your query
- Expanded relationships should display as nested rows beneath parent items
- The row count should reflect the filter criteria in your
whereclause
See Also
- Use Predicates — advanced filtering with comparison and logical operators
- Expand Navigation Properties — multi-level relationship expansion
- Filter by Document — scope queries to the current document
- Configure Sources — full source configuration reference
- Set Default Sort Order — configure sorting at the sheet level
Sources
Sources
Source Code
prod-powersheet-src/com.nextedy.powersheet.client/src/modules/ModelProvider/ModelProvider.tsxpowersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yamlQueryProcessor.javaQueryDataTest.java