Skip to content

Simplify device info access and reorganize documentation - #102

Merged
oblomov-dev merged 2 commits into
mainfrom
claude/inspiring-dijkstra-tzCPG
May 27, 2026
Merged

Simplify device info access and reorganize documentation#102
oblomov-dev merged 2 commits into
mainfrom
claude/inspiring-dijkstra-tzCPG

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Summary

This PR simplifies how developers access device information in abap2UI5 by removing the need for a custom control and complex event binding. Device data is now directly available via client->get( )-s_device on every roundtrip. Documentation has been reorganized to reflect this simpler approach and to better distribute content across related topics.

Key Changes

  • Simplified Backend Device Access: Replaced the info_frontend custom control pattern with direct access to client->get( )-s_device. Developers no longer need to:

    • Define multiple ABAP attributes for device properties
    • Use two-way binding (_bind_edit) to collect values
    • Wait for a finished event before accessing device data
  • Updated Device Model Documentation:

    • Clarified that backend access now uses client->get( )-s_device instead of custom controls
    • Replaced the lengthy example class with a concise code snippet showing direct property access
    • Removed reference to the Z2UI5_CL_DEMO_APP_122 example
  • Reorganized Info Documentation:

    • Moved detailed device property examples from info.md to device_model.md to consolidate device-related content
    • Converted info.md into a navigation hub with brief descriptions and links to detailed documentation
    • Reduced redundancy by pointing readers to the appropriate detailed pages
  • Enhanced Focus and Scrolling Documentation:

    • Added "Read the Current Focus" section to focus.md with code examples for accessing client->get( )-s_focus
    • Added "Read the Scroll Position" section to scrolling.md with code examples for accessing client->get( )-s_scroll
    • These sections were previously only in info.md and are now in their respective feature pages

Implementation Details

The changes maintain backward compatibility in terms of API (the client->get( )-s_device structure remains the same), but simplify the developer experience by eliminating the custom control boilerplate. Documentation now follows a clearer pattern where each feature page contains both reading and writing operations for that feature.

https://claude.ai/code/session_01V9w4eP6AuCzpVHitV9mRXS

claude and others added 2 commits May 27, 2026 15:13
Document client->get( )-s_device as the backend way to access device
info on the Device Model page, and remove the info_frontend custom
control example. Move the read-side snippets from the Info page into
the dedicated Focus and Scrolling pages; the Info page now keeps the
UI5 section and references the other three pages.

https://claude.ai/code/session_01V9w4eP6AuCzpVHitV9mRXS
@oblomov-dev
oblomov-dev merged commit d4da829 into main May 27, 2026
@oblomov-dev
oblomov-dev deleted the claude/inspiring-dijkstra-tzCPG branch May 27, 2026 15:14
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