Simplify device info access and reorganize documentation - #102
Merged
Conversation
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
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.
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_deviceon 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_frontendcustom control pattern with direct access toclient->get( )-s_device. Developers no longer need to:_bind_edit) to collect valuesfinishedevent before accessing device dataUpdated Device Model Documentation:
client->get( )-s_deviceinstead of custom controlsZ2UI5_CL_DEMO_APP_122exampleReorganized Info Documentation:
info.mdtodevice_model.mdto consolidate device-related contentinfo.mdinto a navigation hub with brief descriptions and links to detailed documentationEnhanced Focus and Scrolling Documentation:
focus.mdwith code examples for accessingclient->get( )-s_focusscrolling.mdwith code examples for accessingclient->get( )-s_scrollinfo.mdand are now in their respective feature pagesImplementation Details
The changes maintain backward compatibility in terms of API (the
client->get( )-s_devicestructure 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