Repository navigation
09 Launchpad: smart link popover with getLinks (Z2UI5_CL_SMPS_APP_026) - #105
Merged
Merged
Conversation
A list of products whose ids are links. A press asks the launchpad which apps the user may open for the semantic object with the row's PRODUCT and QUANTITY - follow_up_action( cs_event-cross_app_nav_get_links ), new in abap2UI5/abap2UI5#2948 - and lists the intents it answers in a popover next to the pressed link; an entry navigates there with cross_app_nav_to_ext and the hash as shellHash target. The default semantic object is the receiver's (Z2UI5_CL_SMPS_APP_484), so the target mapping the package README already sets up is all it needs. Overview entry, package README, SAMPLES.md, catalogue.json and catalogue-derived.json updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K3bNqUpvnY4AaHZaKTrgNW
4 of 6 tasks
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.
A sample for
cs_event-cross_app_nav_get_links, the frontend action added in abap2UI5/abap2UI5#2948.What it shows
Z2UI5_CL_SMPS_APP_026is a list of products whose IDs are links, like a smart link in Fiori elements:follow_up_action( cs_event-cross_app_nav_get_links )with three arguments: the semantic object from an input field, the row'sPRODUCTandQUANTITYas intent parameters, andLINKS_READas the callback event.LINKS_READhandler readsintent,textandsubTitleout of the JSON array by hand. This follows the inbound JSON rule inbuilding-apps.md, since there is no released parser.popover_display( by_id = … )with${$source>/id}.cross_app_nav_to_extand{"shellHash":"<intent>"}as target.The default semantic object is
Z2UI5_CL_LP_SAMPLE_04, the semantic object of the receiverZ2UI5_CL_SMPS_APP_484. The target mapping thatsrc/09/README.mdalready sets up is therefore all the sample needs. The popover lists the receiver, which then shows the product and quantity of the pressed row. Started standalone, the sample shows the same message box asZ2UI5_CL_SMPS_APP_481to_483.The sample needs abap2UI5 newer than 1.148.0.
Changes
src/09/z2ui5_cl_smps_app_026.clas.abapand.clas.xml: the new sample, with ABAP Doc,@keywordsand@summarysrc/z2ui5_cl_smps_app_000.clas.abap: overview entry int_launchpadsrc/09/README.md: a sample table row and a section "Asking the launchpad which apps there are"SAMPLES.md,catalogue.jsonandcatalogue-derived.json: regeneratedHow it was tested
main(v757). Forsrc/09, also 0 issues at v740sp08, the release the09-launchpadbranch is linted at, and at Cloud.abap2ui5lint --no-render: 0 errors and 0 warnings. One hint remains,handler-without-eventforLINKS_READ. It is raised by the frontend, as a comment in the handler says.check:overview,check:keywords,check:titles,check:abapdoc,check:samples-md,check:catalogue,check:derived,check:app-rules,check:atc,check:prose,check:pinandcheck:released-api.Generated by Claude Code