Skip to content

Add System Logout demo app (361)#603

Merged
oblomov-dev merged 2 commits intostandardfrom
claude/logout-function-sample-F5Ytj
Apr 23, 2026
Merged

Add System Logout demo app (361)#603
oblomov-dev merged 2 commits intostandardfrom
claude/logout-function-sample-F5Ytj

Conversation

@oblomov-dev
Copy link
Copy Markdown
Member

Summary

This PR adds a new demo application that showcases the system logout functionality in abap2UI5. The demo allows users to trigger a SYSTEM_LOGOUT client event, which handles sign-out either through a Fiori Launchpad shell container or by navigating to the ICF logoff endpoint.

Key Changes

  • New Demo App (z2ui5_cl_demo_app_361): Created a new application class that demonstrates the system logout feature

    • Implements the z2ui5_if_app interface
    • Displays an informational message explaining the logout functionality
    • Provides two logout buttons with consistent styling and icons
    • Uses the client->_event_client( client->cs_event-system_logout ) event to trigger logout
  • Updated Demo Navigation (z2ui5_cl_demo_app_000): Added a new tile in the main demo app menu

    • Links to the new System Logout demo
    • Includes descriptive header and subheader text
    • Maintains consistent styling with other demo tiles

Implementation Details

  • The logout UI is built using the z2ui5_cl_util_xml utility for XML/UI5 view generation
  • The page includes a MessageStrip component with an Information type to educate users about the feature
  • Two action buttons are provided: one in the header and one in the message strip, both triggering the same SYSTEM_LOGOUT event
  • The implementation follows the existing abap2UI5 patterns and conventions

https://claude.ai/code/session_01HNzSniBLv2WAPqxL6KEajy

claude added 2 commits April 23, 2026 15:21
Demonstrates the new SYSTEM_LOGOUT client event: bound directly to
a header button and a page button via client->_event_client(
client->cs_event-system_logout ). No roundtrip to the backend —
the frontend calls the Fiori Launchpad shell logout when available
and falls back to the ICF logoff endpoint otherwise.
Add a tile for the System Logout sample inside the Features panel
of z2ui5_cl_demo_app_000 so it is reachable from the overview.
@oblomov-dev oblomov-dev merged commit d30b6a4 into standard Apr 23, 2026
6 checks passed
@oblomov-dev oblomov-dev deleted the claude/logout-function-sample-F5Ytj branch April 23, 2026 15:25
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