Binding fixes + delete obsolete debug code (#791)

* binding fixes

* delete debugging obsolete code
This commit is contained in:
oblomov 2024-01-18 09:17:05 +01:00 committed by GitHub
parent f34ccbcb51
commit b1e60622d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 14 deletions

View File

@ -597,6 +597,7 @@ CLASS z2ui5_cl_util_func IMPLEMENTATION.
trans_ref_struc_2_struc( trans_ref_struc_2_struc(
EXPORTING EXPORTING
ir_struc_from = <comp_from> ir_struc_from = <comp_from>
pretty_name = pretty_name
IMPORTING IMPORTING
r_result = <comp_to> ). r_result = <comp_to> ).

View File

@ -456,16 +456,17 @@ CLASS z2ui5_cl_fw_binding IMPLEMENTATION.
result = replace( val = result sub = `-` with = `_` occ = 0 ). result = replace( val = result sub = `-` with = `_` occ = 0 ).
IF mv_pretty_name = abap_true. IF mv_pretty_name = abap_true.
SPLIT result AT `_` INTO TABLE DATA(lt_tab). replace all OCCURRENCES OF `_` in result with ``.
result = to_lower( lt_tab[ 1 ] ). * SPLIT result AT `_` INTO TABLE DATA(lt_tab).
LOOP AT lt_tab INTO DATA(lv_val) FROM 2. * result = to_lower( lt_tab[ 1 ] ).
TRY. * LOOP AT lt_tab INTO DATA(lv_val) FROM 2.
lv_val = to_lower( lv_val ). * TRY.
lv_val = to_upper( lv_val(1) ) && lv_val+1. * lv_val = to_lower( lv_val ).
result = result && lv_val. * lv_val = to_upper( lv_val(1) ) && lv_val+1.
CATCH cx_root. * result = result && lv_val.
ENDTRY. * CATCH cx_root.
ENDLOOP. * ENDTRY.
* ENDLOOP.
ENDIF. ENDIF.
ENDMETHOD. ENDMETHOD.

View File

@ -299,10 +299,6 @@ CLASS Z2UI5_CL_FW_HTTP_HANDLER IMPLEMENTATION.
` sap.z2ui5.oBody.ID = sap.z2ui5.oResponse.ID;` && |\n| && ` sap.z2ui5.oBody.ID = sap.z2ui5.oResponse.ID;` && |\n| &&
` sap.z2ui5.oBody.ARGUMENTS = args;` && |\n| && ` sap.z2ui5.oBody.ARGUMENTS = args;` && |\n| &&
|\n| && |\n| &&
` if (sap.z2ui5.checkLogActive) {` && |\n| &&
` console.log('Request Object:');` && |\n| &&
` console.log(sap.z2ui5.oBody);` && |\n| &&
` }` && |\n| &&
` sap.z2ui5.oResponseOld = sap.z2ui5.oResponse;` && |\n| && ` sap.z2ui5.oResponseOld = sap.z2ui5.oResponse;` && |\n| &&
` sap.z2ui5.oResponse = {};` && |\n| && ` sap.z2ui5.oResponse = {};` && |\n| &&
` sap.z2ui5.oController.Roundtrip();` && |\n| && ` sap.z2ui5.oController.Roundtrip();` && |\n| &&