Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/01/01/z2ui5_cl_demo_app_065.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CLASS z2ui5_cl_demo_app_065 IMPLEMENTATION.
press = client->_event( `MAIN` )
)->button( text = `Rerender only nested view`
press = client->_event( `NEST` )
)->button( text = `Update only nested MODEL (nest_view_model_update)`
)->button( text = `Update only nested MODEL (view_model_update)`
press = client->_event( `NEST_MODEL` )
)->input( client->_bind( mv_input_main ) ).

Expand Down Expand Up @@ -77,13 +77,13 @@ CLASS z2ui5_cl_demo_app_065 IMPLEMENTATION.
method_insert = `addContent` ).

WHEN `NEST_MODEL`.
" change only a nest-bound field and refresh the nested view's model
" copy (no re-render of the nested XML) - this isolates the effect of
" nest_view_model_update. Press "Rerender only nested view" first so
" the nested view exists.
" change only a nest-bound field and refresh the shared view model
" (no re-render of the nested XML). The main and nested views share one
" model, so view_model_update refreshes the nested view too. Press
" "Rerender only nested view" first so the nested view exists.
mv_count = mv_count + 1.
mv_input_nest = |nest model updated #{ mv_count }|.
client->nest_view_model_update( ).
client->view_model_update( ).
ENDCASE.

ENDMETHOD.
Expand Down
3 changes: 1 addition & 2 deletions src/01/01/z2ui5_cl_demo_app_097.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ CLASS z2ui5_cl_demo_app_097 IMPLEMENTATION.
WHEN `ROW_DELETE`.

DELETE t_tab2 WHERE uuid = client->get_event_arg( ).
client->nest_view_model_update( ).
client->view_model_update( ).

WHEN `SELCHANGE`.
DATA(lt_sel) = t_tab.
Expand All @@ -145,7 +145,6 @@ CLASS z2ui5_cl_demo_app_097 IMPLEMENTATION.

mv_layout = `TwoColumnsMidExpanded`.

client->nest_view_model_update( ).
client->view_model_update( ).
ENDCASE.

Expand Down
2 changes: 0 additions & 2 deletions src/01/01/z2ui5_cl_demo_app_098.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ CLASS z2ui5_cl_demo_app_098 IMPLEMENTATION.
mv_title = client->get_event_arg( ).
ENDIF.

client->nest_view_model_update( ).
client->view_model_update( ).
view_display_detail_detail( ).

Expand All @@ -181,7 +180,6 @@ CLASS z2ui5_cl_demo_app_098 IMPLEMENTATION.

mv_layout = `TwoColumnsMidExpanded`.

client->nest_view_model_update( ).
client->view_model_update( ).

view_display_detail( ).
Expand Down
Loading