Add four samples for the new frontend capabilities - #697
Merged
Conversation
One sample per capability added to the framework (abap2UI5 PR "implement the
five open ai-demokit framework requests"), all in Basic II (src/01/02) and
marked (A) as frontend-action demos:
- 471 Keyboard Shortcuts: Ctrl+S / Ctrl+D fire the backend events SAVE and
DELETE via cs_event-keyboard_shortcut; a button registers and unregisters
them again, a list logs what was triggered.
- 472 Link with preventDefault: a sap.m.Link whose press is registered with
s_ctrl-check_prevent_default, so the browser does not follow the href and
the backend decides instead. A switch rebuilds the view with the flag off
to compare both behaviours.
- 473 Menu Item Path: a nested sap.m.Menu whose itemSelected toasts the full
breadcrumb of the selected item ("Create New Site > Official Store"),
resolved client-side by $controller.textPath( ) - no roundtrip.
- 474 MessagePopover URL Policy: messages carrying an in-app and an external
link; the popover is opened with RELATIVE_ONLY, ALLOW_ALL or DENY_ALL, the
frontend installs the matching setAsyncURLHandler validator.
Overview catalog regenerated (npm run launchpad).
Note: these samples use framework API that is not on abap2UI5 main yet, so
the abaplint gates stay red until that PR is merged (and, for ABAP_702, until
the 702 branch is regenerated). Verified locally against the framework branch:
ABAP_STANDARD, ABAP_CLOUD and the 702 downport all report 0 issues.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Amu2PTNKeQLzUJysdJUBUa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One sample per capability added to the framework (abap2UI5 PR "implement the five open ai-demokit framework requests"), all in Basic II (src/01/02) and marked (A) as frontend-action demos:
Overview catalog regenerated (npm run launchpad).
Note: these samples use framework API that is not on abap2UI5 main yet, so the abaplint gates stay red until that PR is merged (and, for ABAP_702, until the 702 branch is regenerated). Verified locally against the framework branch: ABAP_STANDARD, ABAP_CLOUD and the 702 downport all report 0 issues.
Claude-Session: https://claude.ai/code/session_01Amu2PTNKeQLzUJysdJUBUa