From f055295954e61c953e76e6f3ec1f5c4be6772243 Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Wed, 5 Jul 2023 18:39:50 +0200 Subject: [PATCH] nested views (#340) --- src/z2ui5_cl_http_handler.clas.abap | 4 ++-- src/z2ui5_if_client.intf.abap | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/z2ui5_cl_http_handler.clas.abap b/src/z2ui5_cl_http_handler.clas.abap index f10b37df..99989a29 100644 --- a/src/z2ui5_cl_http_handler.clas.abap +++ b/src/z2ui5_cl_http_handler.clas.abap @@ -27,7 +27,7 @@ ENDCLASS. -CLASS z2ui5_cl_http_handler IMPLEMENTATION. +CLASS Z2UI5_CL_HTTP_HANDLER IMPLEMENTATION. METHOD http_get. @@ -142,7 +142,7 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION. ` oView.setModel(new sap.ui.model.json.JSONModel(sap.z2ui5.oResponse.OVIEWMODEL));` && |\n| && ` var oParent = sap.z2ui5.oView.byId(sap.z2ui5.oResponse.PARAMS.S_VIEW_NEST.ID);` && |\n| && ` // oParent.addContent(oView);` && |\n| && - ` oParent[ sap.z2ui5.oResponse.PARAMS.S_VIEW_NEST.METHOD_DESTROY ]();` && |\n| && + ` try { oParent[ sap.z2ui5.oResponse.PARAMS.S_VIEW_NEST.METHOD_DESTROY ](); } catch (e) {}` && |\n| && ` // oParent.removeAllMidColumnPages();` && |\n| && ` oParent[ sap.z2ui5.oResponse.PARAMS.S_VIEW_NEST.METHOD_INSERT ](oView);` && |\n| && ` // oParent.addMidColumnPage(oView);` && |\n| && diff --git a/src/z2ui5_if_client.intf.abap b/src/z2ui5_if_client.intf.abap index 4c9e49b9..14409bab 100644 --- a/src/z2ui5_if_client.intf.abap +++ b/src/z2ui5_if_client.intf.abap @@ -60,8 +60,7 @@ INTERFACE z2ui5_if_client val TYPE clike id type clike method_insert type clike - method_destroy type clike - . + method_destroy type clike optional. METHODS cursor_set IMPORTING