mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 00:46:19 +08:00
Binding fixes + delete obsolete debug code (#791)
* binding fixes * delete debugging obsolete code
This commit is contained in:
parent
f34ccbcb51
commit
b1e60622d8
|
@ -597,6 +597,7 @@ CLASS z2ui5_cl_util_func IMPLEMENTATION.
|
|||
trans_ref_struc_2_struc(
|
||||
EXPORTING
|
||||
ir_struc_from = <comp_from>
|
||||
pretty_name = pretty_name
|
||||
IMPORTING
|
||||
r_result = <comp_to> ).
|
||||
|
||||
|
|
|
@ -456,16 +456,17 @@ CLASS z2ui5_cl_fw_binding IMPLEMENTATION.
|
|||
result = replace( val = result sub = `-` with = `_` occ = 0 ).
|
||||
|
||||
IF mv_pretty_name = abap_true.
|
||||
SPLIT result AT `_` INTO TABLE DATA(lt_tab).
|
||||
result = to_lower( lt_tab[ 1 ] ).
|
||||
LOOP AT lt_tab INTO DATA(lv_val) FROM 2.
|
||||
TRY.
|
||||
lv_val = to_lower( lv_val ).
|
||||
lv_val = to_upper( lv_val(1) ) && lv_val+1.
|
||||
result = result && lv_val.
|
||||
CATCH cx_root.
|
||||
ENDTRY.
|
||||
ENDLOOP.
|
||||
replace all OCCURRENCES OF `_` in result with ``.
|
||||
* SPLIT result AT `_` INTO TABLE DATA(lt_tab).
|
||||
* result = to_lower( lt_tab[ 1 ] ).
|
||||
* LOOP AT lt_tab INTO DATA(lv_val) FROM 2.
|
||||
* TRY.
|
||||
* lv_val = to_lower( lv_val ).
|
||||
* lv_val = to_upper( lv_val(1) ) && lv_val+1.
|
||||
* result = result && lv_val.
|
||||
* CATCH cx_root.
|
||||
* ENDTRY.
|
||||
* ENDLOOP.
|
||||
ENDIF.
|
||||
|
||||
ENDMETHOD.
|
||||
|
|
|
@ -299,10 +299,6 @@ CLASS Z2UI5_CL_FW_HTTP_HANDLER IMPLEMENTATION.
|
|||
` sap.z2ui5.oBody.ID = sap.z2ui5.oResponse.ID;` && |\n| &&
|
||||
` sap.z2ui5.oBody.ARGUMENTS = args;` && |\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.oResponse = {};` && |\n| &&
|
||||
` sap.z2ui5.oController.Roundtrip();` && |\n| &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user