From 2f10c54342942b0225159b116a762e0933681377 Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Sun, 9 Jul 2023 21:49:55 +0200 Subject: [PATCH] fix demo 66 (#366) --- src/z2ui5_cl_http_handler.clas.abap | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/z2ui5_cl_http_handler.clas.abap b/src/z2ui5_cl_http_handler.clas.abap index 1d57e008..83063877 100644 --- a/src/z2ui5_cl_http_handler.clas.abap +++ b/src/z2ui5_cl_http_handler.clas.abap @@ -135,7 +135,7 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION. ` }` && |\n| && ` if (sap.z2ui5.checkNestAfter == false) {` && |\n| && ` if (sap.z2ui5.oResponse.PARAMS.S_VIEW_NEST.XML !== '') {` && |\n| && - ` sap.z2ui5.oController.ViewDestroy(sap.z2ui5.oViewNest);` && |\n| && + ` sap.z2ui5.oController.NestViewDestroy( );` && |\n| && ` new sap.ui.core.mvc.XMLView.create({` && |\n| && ` definition: sap.z2ui5.oResponse.PARAMS.S_VIEW_NEST.XML,` && |\n| && ` }).then(oView => {` && |\n| && @@ -197,6 +197,12 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION. ` }` && |\n| && ` sap.z2ui5.oViewPopover.destroy();` && |\n| && ` },` && |\n| && + ` NestViewDestroy: () => {` && |\n| && + ` if (!sap.z2ui5.oViewNest) {` && |\n| && + ` return;` && |\n| && + ` }` && |\n| && + ` sap.z2ui5.oViewNest.destroy();` && |\n| && + ` },` && |\n| && ` ViewDestroy: () => {` && |\n| && ` if (!sap.z2ui5.oView) {` && |\n| && ` return;` && |\n| && @@ -333,6 +339,7 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION. ` Roundtrip: () => {` && |\n| && |\n| && ` sap.z2ui5.checkTimerActive = false;` && |\n| && + ` sap.z2ui5.checkNestAfter = false;` && |\n| && |\n| && ` sap.z2ui5.oBody.OLOCATION = {` && |\n| && ` ORIGIN: window.location.origin,` && |\n| &&