Skip to content

Message: say which half of the API a call belongs to - #316

Merged
oblomov-dev merged 2 commits into
mainfrom
claude/peaceful-maxwell-bq0wrn
Sep 13, 2026
Merged

oblomov-dev merged 2 commits into
mainfrom
claude/peaceful-maxwell-bq0wrn

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Companion to abap2UI5/abap2UI5#2748, which takes the plain sap.m options off client->message_toast_display( ) and client->message_box_display( ).

The Message page gets that split as a section of its own: the client method is the ABAP side — hand it what the app already holds and it works out severity, title and rendering — while a pure UI5 option is set on the control, as the option object of a follow_up_action( cs_event-control_global ) call, which is the sap.m.MessageToast.show( ) / sap.m.MessageBox.<type>( ) API 1:1. With it: the table of which option moved where, and the wired, round-trip-free form that fills {0} placeholders on the client.

Frontend Actions says next to control_global that a t_arg starting with a brace travels as real JSON — the mechanism those options ride on — and links back.

Z2UI5_CL_SMP_APP_512 joins the Message page's sample list as the control-side counterpart of 502.

Also repaired, found by the same gate run: two deprecation-page links into src/00/97, a package that no longer exists in abap2UI5/samples, and the generated sample-link blocks that carry the same stale paths.

Checks: npm run check:examples, check:conventions, check:design, check:images, check:playground, check:samples and npm test (251/251) pass. Two failures are there on main too and untouched here: check:api-reference is stale against the framework's main (it regenerates once #2748 lands) and npm run build cannot reach abap2ui5.github.io from this environment.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CigShdooBBhKDDztTLpsZq


Generated by Claude Code

abap2UI5 takes the plain sap.m options off client->message_toast_display( )
and client->message_box_display( ): the client method carries what an ABAP
app decides - the data in any shape, the kind of box, the buttons as a table,
the backend event its closing raises - and a pure UI5 option is set on the
control, as the option object of a follow_up_action( cs_event-control_global )
call, which is the sap.m API 1:1.

The Message page gets that as a section of its own, with the table of which
option moved where and the wired, round-trip-free form; Frontend Actions says
next to control_global that a t_arg starting with a brace travels as real
JSON, which is what carries those options. Z2UI5_CL_SMP_APP_512 joins the
page's sample list as the control-side counterpart of 502.

Also repaired: two deprecation-page links into src/00/97, a package that no
longer exists in abap2UI5/samples, and the sample-link blocks the generator
refreshes with them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CigShdooBBhKDDztTLpsZq
@oblomov-dev
oblomov-dev merged commit 446213c into main Sep 13, 2026
1 check failed
@oblomov-dev
oblomov-dev deleted the claude/peaceful-maxwell-bq0wrn branch September 13, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants