ui5-call-action
Four UI5 apps over one CAP service, each calling the same bound, collection-bound and unbound ODataODataExposing data and operations through OData, including the service model, metadata and protocol versions clients require. Version differences affect which clients can consume a service and which query features they can use.SAP and community, narrow by design actions and functions from custom code.
A books service in CDS with four front ends against it: Fiori elements and freestyle, each once in OData V4 and once in V2, all served together on localhost:4004 by npm run watch. Every app calls the same set of operations — an action bound to an entity, one bound to a collection, an unbound one, and read-only functions at entity and service level — first through the button CAP's Fiori annotationsFiori annotationsDescribing a service so a Fiori client can render it without hand-written UI code — titles, value helps, hierarchies and visibility expressed as model annotations rather than screen logic.SAP and community, unassessed generate, then through custom code doing the same thing. The V2 pair carries the boundary: the V2 OData adapter does not support collection-bound actions properly, and createBooksAndChapters, the action with nested parameters, is not available there at all. On the V4 side the README marks bindContext().execute() deprecated in UI5 1.123 and names invoke() as the call to move to. It stops at the call itself, with a handler of a few lines behind each action, because what the repository is about is how the front end reaches it.
Facts
Where it sits
Who is behind it
In the atlas: maintains 35, contributes to 86, wrote 25@marianfoomaintainer
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
- Runtime
- Node.js
As a sample
- Form
- A tutorial's companion code
Connections
Describing a service so a Fiori client renders it without UI code
Exposing data and operations through OData
Ten exercises on the Fiori elements mock server middleware
Download
README
quoted from marianfoo/ui5-call-action, readSAP CAP Action Extensions Demo
Blog Post about this repository: https://community.sap.com/t5/technology-blog-posts-by-members/the-complete-guide-to-calling-actions-in-ui5-with-custom-code/ba-p/14156201
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
Flavors
“**UI5 V4 Fiori Elements**” — marianfoo/ui5-call-action — README
“**UI5 V4 Freestyle**” — marianfoo/ui5-call-action — README
History in the atlas
- First seen.
For your agent
- Ref
artifact:marianfoo-ui5-call-action- JSON
- /artifacts/marianfoo-ui5-call-action.json
- MCP
- Connecting an agent