Skip to content

Replace nest_view_model_update with view_model_update - #691

Merged
oblomov-dev merged 2 commits into
standardfrom
claude/nested-views-model-arch-p9jsm9
Jul 21, 2026
Merged

Replace nest_view_model_update with view_model_update#691
oblomov-dev merged 2 commits into
standardfrom
claude/nested-views-model-arch-p9jsm9

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Summary

Consolidate model update logic by replacing all calls to nest_view_model_update() with view_model_update(). This reflects the architectural change where main and nested views share a single model instance, making the separate nested update method redundant.

Key Changes

  • z2ui5_cl_demo_app_065: Updated button label and comments to reflect the shared model approach; replaced nest_view_model_update() call with view_model_update()
  • z2ui5_cl_demo_app_097: Replaced nest_view_model_update() with view_model_update() in ROW_DELETE handler; removed duplicate nest_view_model_update() call in SELCHANGE handler
  • z2ui5_cl_demo_app_098: Removed redundant nest_view_model_update() calls in two event handlers, keeping only view_model_update()

Implementation Details

The changes clarify that since the main and nested views now share a single view model, calling view_model_update() automatically refreshes both views. This eliminates the need for a separate nested-specific update method and simplifies the API surface.

https://claude.ai/code/session_01F4VXychqy741rejPzYwLxy

claude and others added 2 commits July 21, 2026 14:14
The main and nested views now share one root model (nested views inherit the
main view's model via UI5 propagation), so refreshing the main model via
view_model_update also refreshes the nested views. The nest-specific
nest_view_model_update call is therefore redundant.

- 065: switch the demo call, button label and comment to view_model_update.
- 097 / 098: replace the nest call; where it was already paired with a
  view_model_update, collapse the two into the single remaining call.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F4VXychqy741rejPzYwLxy
@oblomov-dev
oblomov-dev merged commit b85f758 into standard Jul 21, 2026
5 of 6 checks passed
@oblomov-dev
oblomov-dev deleted the claude/nested-views-model-arch-p9jsm9 branch July 21, 2026 14:19
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