Replace _bind_edit with _bind for read-only bindings - #687
Merged
Conversation
The view parameter of _bind/_bind_edit is inactive: it is never forwarded to the binding service internally. Remove the explicit view = ... arguments from the package 01 sample calls.
_bind_edit is functionally identical to _bind (both two-way binding) and marked obsolete. Migrate all 228 _bind_edit calls across package 01 to _bind. Explanatory comments referencing _bind_edit are left as-is.
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
Systematically replace all
client->_bind_edit()calls withclient->_bind()for read-only UI bindings across demo applications. This change reflects the correct API usage where_bind_edit()should only be used for editable fields, while_bind()is appropriate for display-only bindings.Key Changes
_bind_edit()calls with_bind()for disabled device and UI5 info input fields_bind()instead of_bind_edit()_bind()for read-only display fields_bind()for all input fields_bind()_bind()_bind()_bind()_bind()_bind()_bind()_bind()_bind()_bind()viewparameter from nested view table bindings_bind()_bind_edit()with_bind()for read-only display bindingsImplementation Details
_bind_edit()to_bind()_bind()for read-only display,_bind_edit()for editable fieldshttps://claude.ai/code/session_012t1RGjFwgQtjYhfFvPdWbp