CDS pluginCDS plugintypeInstalls into a CAP project and extends the runtime. CAP loads it through cds.requires or the plugin hook.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 →

@mpah/enum-value-help

A CAP plugin that generates value help for enum fields from an @enumValueHelp annotation, serving the enum's values from one generated entity instead of hand-written OData annotations.

An enum in a CDS model compiles to a set of allowed values and nothing else: a Fiori elements field bound to one renders as a free-text input until somebody writes a @Common.ValueList pointing at an entity that holds those values. This plugin writes that annotation instead. During model loading it scans for fields marked @enumValueHelp, creates a single EnumValueHelpView entity, exposes it to the services that contain an annotated entity, and serves the enum's values from it by entity and field; @enumValueHelpFixedValues adds @Common.ValueListWithFixedValues as well, which is what makes the control a dropdown rather than a search popup. It stops at values the CDS type already declares — an enum whose texts live in a database table or a translation bundle is not what it reads.

Facts

Latestv1.0.0ReleasedLast pushLicenceApache-2.0

Where it sits

Lives in
Provides
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≥ 8@sap/cdsartifactThe peer range, as published.

Who is behind it

Maksim PahlbergMaksim PahlbergPersonMaintains this
In the atlas: maintains 1, contributes to 1
@mpah
maintainer

Before choosing this

Conditions

LicenceSAP Developer License Agreement 3.2 CAP§ 1, 2, 3A cds-plugin is used with SAP CAP materials, or an artifact is explicitly identified as a CAP plugin or application.
  • § 1 License. Productive customer applications are limited to SAP BTP or another SAP-licensed platform, and mass extraction to a non-SAP product is restricted except where solely required for SAP interoperability.
  • § 2 Intellectual Property. The agreement retains SAP's rights in the covered materials and limits making APIs, tools or software available to third parties, while preserving ownership of customer applications subject to SAP's underlying rights.
  • § 3 Artificial Intelligence Training. The agreement prohibits use of the covered materials and customer applications for training artificial-intelligence models or systems.
SAP Developer License Agreement 3.2 CAP →

What it declares

Every artifact

Type
CDS plugin
Origin
Independently maintained
Runtime
Node.js

As a CDS plugin

Declared for
>=8
Distributed through
npm

Tasks this contributes to1Beta

Put a value help on a field a Fiori client rendersA field in a Fiori elements app offers the values it allows instead of a free-text input, with the list coming from the model rather than from code in the app.Node.js, JavaAlso in UI5, ABAPCoversvalue-help generator for enum fields
What it does

Answers the case the shortcut leaves alone, a field typed by a CDS enum. @enumValueHelp on the field makes the plugin add @Common.ValueList against a generated EnumValueHelpView that serves the enum's own values by entity and field, and @enumValueHelpFixedValues adds @Common.ValueListWithFixedValues as well, which is what makes the control a dropdown rather than a search dialog. It scans for the annotations while the CDS model loads and exposes the view to the services that hold an annotated entity.

Remaining work

Mark each enum field, and @enumValueHelpFixedValues as well where the list should be fixed. Nothing picks the fields.

All options on the Fiori annotations page →

Connections1

Install

npm add @mpah/enum-value-help

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from mpah/enum-value-help under Apache-2.0, read
mpah/enum-value-help/README.mdOn GitHub

Enum Value Help Plugin for SAP CAP

A CAP (Cloud Application Programming) plugin that automatically generates value help functionality for enum fields in your CDS models. This plugin eliminates the need to manually configure value lists for enum fields, making your development process more efficient and your UI more user-friendly.

Features

  • Automatic Value Help: Automatically generates value help for fields annotated with @enumValueHelp
  • Fixed Values Support: Optional @enumValueHelpFixedValues annotation for strict value validation
  • Zero Configuration: Works out-of-the-box with minimal setup
  • Type Support: Supports both inline enums and enum types
  • Service Auto-Exposure: Automatically exposes required entities to your services
  • Fiori Integration: Seamlessly integrates with SAP Fiori Elements

Installation

npm install @mpah/enum-value-help

Quick Start

  1. Install the plugin (see above)

  2. Add annotations to your CDS models:

using from '@mpah/enum-value-help';

// Define an enum type
type Priority : String enum {
    high;
    medium;
    low;
}

// Define an entity with enum fields
entity Issues : managed {
    key ID          : UUID;
    title           : String(100);
    
    // Enable value help for this enum field
    priority        : Priority @enumValueHelp;
    
    // Enable value help with fixed values
    status          : String enum {
        open;
        closed;
        draft;
    } @enumValueHelpFixedValues;
}
  1. Start your application - the plugin automatically handles the rest!

Configuration

Annotations
AnnotationDescriptionEffect
@enumValueHelpEnables value help for enum fieldsAdds @Common.ValueList annotation
@enumValueHelpFixedValuesEnables value help with fixed valuesAdds both @Common.ValueList and @Common.ValueListWithFixedValues
Plugin Behavior

The plugin automatically:

  • Detects entities with enum value help annotations
  • Creates a global EnumValueHelpView entity
  • Auto-exposes the view to relevant services
  • Registers dynamic read handlers for enum data

How It Works

  1. Model Enhancement: During the CDS model loading phase, the plugin scans for entities with @enumValueHelp annotations
  2. Value List Generation: Automatically adds @Common.ValueList annotations pointing to the EnumValueHelpView
  3. Dynamic Data: The EnumValueHelpView serves enum values dynamically based on entity and field context
  4. Service Integration: Auto-exposes the helper view to services that contain annotated entities

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.

Apache-2.0, read

History

Latest

v1.0.0

0downloads per week, npm
Weekly downloads for @mpah/enum-value-help26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 0.27 Apr – 3 May: 24 May – 10 May: 811 May – 17 May: 318 May – 24 May: 225 May – 31 May: 51 Jun – 7 Jun: 48 Jun – 14 Jun: 815 Jun – 21 Jun: 322 Jun – 28 Jun: 429 Jun – 5 Jul: 36 Jul – 12 Jul: 713 Jul – 19 Jul: 320 Jul – 26 Jul: 927 Jul – 2 Aug: 43 Aug – 9 Aug: 310 Aug – 16 Aug: 417 Aug – 23 Aug: 124 Aug – 30 Aug: 931 Aug – 6 Sept: 87 Sept – 13 Sept: 214 Sept – 20 Sept: 621 Sept – 27 Sept: 928 Sept – 4 Oct: 45 Oct – 11 Oct: 712 Oct – 18 Oct: 519 Oct – 25 Oct: 0
Fiori annotations
  1. com.sap.cds:cds-services-bomMaven bill of materials pinning CAP Java module versions
  2. urp-vocabCDS vocabulary for User-Rendered Patterns display annotations
  3. @sap/cds-fioriFiori draft handling and UI-facing behaviour for CAP services
  4. @sap/cdsCAP Node.js runtime
  5. @sap/generator-fioriEntry point for generating a Fiori application from a template
  6. @sap-ux/cds-annotation-parserParser for annotations in CDS source
  7. @sap/ux-cds-compiler-facadeWrapper around the CDS compiler for annotation handling
  8. @sap-ux/cds-odata-annotation-converterConverter from CDS annotations to their OData form
  9. @sap/ux-cds-odata-language-server-extensionOData annotation features for the @sap/vscode-cds extension
  10. @sap-ux/fiori-annotation-apiProgrammatic API for reading and writing project annotations
  11. @sap-ux/odata-vocabulariesOASIS and SAP OData vocabularies with a VocabularyService
  12. cap-js-geoloc-pluginAnnotation-driven geocoding, address correction and routing for CAP
  13. cap-user-infoUser details and quickview links for createdBy and modifiedBy

Details

Sources4
The discovery passdiscovered here, npmchecked
npm registry, @mpah/enum-value-helpversion, releases, installschecked
github.com/git+https://github.com/mpah/enum-value-help.gittree, 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>=8
latestv1.0.0
first release
releases and cadence1
discovered viaThe discovery pass · npm
first seen in the atlas
ecosystem and domaincap, ui-and-frontend-bridge
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:mpah-enum-value-help
JSON
/artifacts/mpah-enum-value-help.json
MCP
Connecting an agent