new version fixes (#314)

This commit is contained in:
oblomov 2023-06-27 09:02:12 +02:00 committed by GitHub
parent fdd14c41cb
commit c308a02068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -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| &&

View File

@ -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.

View File

@ -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,