SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →Reference

cap-feature-control

A singleton entity whose two flags drive what a Fiori elements page offers: the restriction, action-availability and button-visibility annotations all reach it by $edmJson $Path.

FeatureControl is an @odata.singleton holding operationHidden and operationEnabled, computed in its READ handler from whether the caller is('Admin'), and the annotations reach it over /CatalogService.EntityContainer/FeatureControl/...: Deletable inside Capabilities.DeleteRestrictions and, as the file writes it, Updatable inside Capabilities.InsertRestrictions; Core.OperationAvailable on the bound updateStock and the unbound autoFillStock; and UI.Hidden on both action buttons in the UI.LineItem. Beside those the file keeps variants that were tried and commented out, among them two that wrap the path in $Not to read the opposite flag, both marked //this does not work, and a UI.CreateHidden block marked //this works. fiori-dynamic-feature-control answers the field-level half of the same question in CAP Java; this one is operation-level, in TypeScript, with cds-plugin-ui5 in devDependencies and app/listreport as an npm workspace under sapux.

Facts

Last pushLicenceUNLICENSED

Where it sits

Lives in
Demonstrates
Fiori annotationsCAPFiori annotationscapabilityDescribing 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.
Flavors
Node.jsfrom its runtime
Requires
@sap/cds^10@sap/cdsartifactThe peer range, as published.

Who is behind it

Mio YasutakeMio YasutakePersonMaintains this
In the atlas: maintains 47, contributes to 47, wrote 10
@miyasuta
maintainer

What it declares

Every artifact

Type
Sample
Origin
Independently maintained
Use as
A reference
Runtime
Node.js

As a sample

Declared for
^10
Form
does not say

Connections1

cap-feature-control connectionscap-feature-controlPROVIDES→ demonstrates1demonstrates authoredFiori annotations

README

quoted from miyasuta/cap-feature-control, read
miyasuta/cap-feature-control/README.mdOn GitHub

Getting Started

Welcome to your new project.

It contains these folders and files, following our recommended project layout:

File or FolderPurpose
app/content for UI frontends goes here
db/your domain models and data go here
srv/your service models and code go here
package.jsonproject metadata and configuration
readme.mdthis getting started guide
excerpt, UNLICENSED, read the rest, on GitHub

Details

Sources3
GitHub APIdiscovered here, miyasutachecked
github.com/miyasuta/cap-feature-controltree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

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
runtimesnode
declared for^10
discovered viaGitHub API · miyasuta
first seen in the atlas
ecosystem and domaincap, ui-and-frontend-bridge
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:miyasuta-cap-feature-control
JSON
/artifacts/miyasuta-cap-feature-control.json
MCP
Connecting an agent