From c308a02068d449b708ef96865e348ee33bb69e50 Mon Sep 17 00:00:00 2001 From: oblomov <102328295+oblomov-dev@users.noreply.github.com> Date: Tue, 27 Jun 2023 09:02:12 +0200 Subject: [PATCH] new version fixes (#314) --- src/z2ui5_cl_http_handler.clas.abap | 1 + src/z2ui5_cl_http_handler.clas.locals_imp.abap | 8 ++++---- src/z2ui5_if_client.intf.abap | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/z2ui5_cl_http_handler.clas.abap b/src/z2ui5_cl_http_handler.clas.abap index 46ce85b0..3868c107 100644 --- a/src/z2ui5_cl_http_handler.clas.abap +++ b/src/z2ui5_cl_http_handler.clas.abap @@ -222,6 +222,7 @@ CLASS Z2UI5_CL_HTTP_HANDLER IMPLEMENTATION. ` sap.z2ui5.oBody.OLOCATION.ORIGIN = window.location.origin;` && |\n| && ` sap.z2ui5.oBody.OLOCATION.PATHNAME = sap.z2ui5.pathname;` && |\n| && ` sap.z2ui5.oBody.OLOCATION.SEARCH = window.location.search;` && |\n| && + ` sap.z2ui5.oBody.OLOCATION.VERSION = sap.ui.getVersionInfo().gav;` && |\n| && |\n| && ` if (sap.z2ui5.readOData) {` && |\n| && ` sap.z2ui5.readOData();` && |\n| && diff --git a/src/z2ui5_cl_http_handler.clas.locals_imp.abap b/src/z2ui5_cl_http_handler.clas.locals_imp.abap index 0d6341dd..a0ce36fc 100644 --- a/src/z2ui5_cl_http_handler.clas.locals_imp.abap +++ b/src/z2ui5_cl_http_handler.clas.locals_imp.abap @@ -1342,7 +1342,6 @@ CLASS z2ui5_lcl_fw_handler IMPLEMENTATION. result->ms_db-id = lv_id. result->ms_db-id_prev = id_prev. - TRY. result->ms_actual-check_launchpad_active = so_body->get_attribute( `CHECKLAUNCHPADACTIVE` )->get_val( ). CATCH cx_root. @@ -1379,10 +1378,11 @@ CLASS z2ui5_lcl_fw_handler IMPLEMENTATION. ENDTRY. TRY. - DATA(lo_location) = so_body->get_attribute( `OLOCATION` ). - ss_config-origin = lo_location->get_attribute( `ORIGIN` )->get_val( ). + DATA(lo_location) = so_body->get_attribute( `OLOCATION` ). + ss_config-origin = lo_location->get_attribute( `ORIGIN` )->get_val( ). ss_config-pathname = lo_location->get_attribute( `PATHNAME` )->get_val( ). - ss_config-search = lo_location->get_attribute( `SEARCH` )->get_val( ). + ss_config-search = lo_location->get_attribute( `SEARCH` )->get_val( ). + ss_config-version = lo_location->get_attribute( `VERSION` )->get_val( ). ss_config-controller_name = `z2ui5_controller`. CATCH cx_root. ENDTRY. diff --git a/src/z2ui5_if_client.intf.abap b/src/z2ui5_if_client.intf.abap index 2cdcbab0..27bafb91 100644 --- a/src/z2ui5_if_client.intf.abap +++ b/src/z2ui5_if_client.intf.abap @@ -12,6 +12,7 @@ INTERFACE z2ui5_if_client TYPES: BEGIN OF ty_S_config, controller_name TYPE string, + version TYPE string, pathname TYPE string, origin TYPE string, search TYPE string,