blog-cap-chart
A Fiori elements overview page over a CAP service whose two donut-chart cards read the same measure from an aggregating view and from the plain entity, so what the aggregation annotations change is visible side by side.
db/schema.cds holds an Expenses entity and an ExpensesAnalytics view selected from it, the view marked @Aggregation.ApplySupported.PropertyRestrictions with category and currency as @Analytics.Dimension and amount as @Analytics.Measure carrying @Aggregation.default: #SUM. srv/cat-service.cds exposes both and annotates UI.Chart on each with a #Donut chart of amount by category, which is the annotation Mio YasutakeMio Yasutakemaintains 47 entries, wrote 10 posts, contributed to 47 entriesindependent's post first reported having failed to put on a CAP service and then, in an update crediting Oliver KlemenzOliver Klemenzmaintains 4 entries, contributed to 6 entries, recorded as working without the local annotation the app had needed. The ovptest app's manifest.json names Expenses as the globalFilterEntityType behind the filter bar and carries three cards: a list over Expenses, a sap.ovp.cards.charts.analytical card over ExpensesAnalytics, and the same card over Expenses, which the post adds for comparison and which does not aggregate. The overview page reads the service over its V2 endpoint at /v2/catalog/, and the repository's README is the one cds init writes, so Adding a Donut Chart on top of CAP service is where the project is explained.
Facts
Where it sits
Who is behind it
In the atlas: maintains 47, contributes to 47, wrote 10@miyasutamaintainer
Before choosing this
Signals
LicenceNo licenseNeither the package manifest nor the repository tree declares a licence
Without a licence the default is all rights reserved. Ask the maintainer, or check for terms stated elsewhere, before depending on it.
What it declares
Every artifact
- Type
- Sample
- Origin
- Independently maintained
- Use as
- A reference
- Runtime
- Node.js
As a sample
- Form
- A tutorial's companion code
Connections
Grouped, aggregated reads for analytical clients, run in the database
Describing a service so a Fiori client renders it without UI code
Exposes a CAP service as OData V2
Download
README
quoted from miyasuta/blog-cap-chart, readGetting Started
Welcome to your new project.
It contains these folders and files, following our recommended project layout:
| File / Folder | Purpose |
|---|---|
app/ | content for UI frontends go here |
db/ | your domain models and data go here |
srv/ | your service models and code go here |
package.json | project metadata and configuration |
readme.md | this getting started guide |
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- First seen.
For your agent
- Ref
artifact:miyasuta-blog-cap-chart- JSON
- /artifacts/miyasuta-blog-cap-chart.json
- MCP
- Connecting an agent