diff --git a/src/01/01/z2ui5_cl_demo_app_065.clas.abap b/src/01/01/z2ui5_cl_demo_app_065.clas.abap index 2791e4a9..ace529d7 100644 --- a/src/01/01/z2ui5_cl_demo_app_065.clas.abap +++ b/src/01/01/z2ui5_cl_demo_app_065.clas.abap @@ -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 ) ). @@ -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. diff --git a/src/01/01/z2ui5_cl_demo_app_097.clas.abap b/src/01/01/z2ui5_cl_demo_app_097.clas.abap index b08e1674..0abe3e59 100644 --- a/src/01/01/z2ui5_cl_demo_app_097.clas.abap +++ b/src/01/01/z2ui5_cl_demo_app_097.clas.abap @@ -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. @@ -145,7 +145,6 @@ CLASS z2ui5_cl_demo_app_097 IMPLEMENTATION. mv_layout = `TwoColumnsMidExpanded`. - client->nest_view_model_update( ). client->view_model_update( ). ENDCASE. diff --git a/src/01/01/z2ui5_cl_demo_app_098.clas.abap b/src/01/01/z2ui5_cl_demo_app_098.clas.abap index 0f9223c3..94ff362f 100644 --- a/src/01/01/z2ui5_cl_demo_app_098.clas.abap +++ b/src/01/01/z2ui5_cl_demo_app_098.clas.abap @@ -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( ). @@ -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( ).