mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 00:32:19 +08:00
model_fix (#972)
This commit is contained in:
parent
b8bf681142
commit
5e19a51db4
|
@ -147,11 +147,12 @@ CLASS z2ui5_cl_core_dissolve_srv IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD main.
|
METHOD main.
|
||||||
|
|
||||||
IF mt_attri->* IS INITIAL.
|
* IF mt_attri->* IS INITIAL.
|
||||||
main_init( ).
|
* main_init( ).
|
||||||
RETURN.
|
* RETURN.
|
||||||
ENDIF.
|
* ENDIF.
|
||||||
|
|
||||||
|
main_init( ).
|
||||||
IF line_exists( mt_attri->*[ check_dissolved = abap_false ] ).
|
IF line_exists( mt_attri->*[ check_dissolved = abap_false ] ).
|
||||||
main_run( ).
|
main_run( ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
@ -160,11 +161,13 @@ CLASS z2ui5_cl_core_dissolve_srv IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
METHOD main_init.
|
METHOD main_init.
|
||||||
|
TRY.
|
||||||
|
DATA(ls_attri) = VALUE z2ui5_if_core_types=>ty_s_attri( r_ref = REF #( mo_app ) ).
|
||||||
|
DATA(lt_init) = diss_oref( REF #( ls_attri ) ).
|
||||||
|
INSERT LINES OF lt_init INTO TABLE mt_attri->*.
|
||||||
|
|
||||||
DATA(ls_attri) = VALUE z2ui5_if_core_types=>ty_s_attri( r_ref = REF #( mo_app ) ).
|
CATCH cx_root.
|
||||||
DATA(lt_init) = diss_oref( REF #( ls_attri ) ).
|
ENDTRY.
|
||||||
INSERT LINES OF lt_init INTO TABLE mt_attri->*.
|
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
||||||
|
@ -173,7 +176,8 @@ CLASS z2ui5_cl_core_dissolve_srv IMPLEMENTATION.
|
||||||
DATA(lt_attri_new) = VALUE z2ui5_if_core_types=>ty_t_attri( ).
|
DATA(lt_attri_new) = VALUE z2ui5_if_core_types=>ty_t_attri( ).
|
||||||
|
|
||||||
LOOP AT mt_attri->* REFERENCE INTO DATA(lr_attri)
|
LOOP AT mt_attri->* REFERENCE INTO DATA(lr_attri)
|
||||||
WHERE check_dissolved = abap_false.
|
WHERE check_dissolved = abap_false
|
||||||
|
AND bind_type <> z2ui5_if_core_types=>cs_bind_type-one_time.
|
||||||
|
|
||||||
lr_attri->check_dissolved = abap_true.
|
lr_attri->check_dissolved = abap_true.
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ CLASS Z2UI5_CL_FW_CC_DEBUGGING_TOOLS IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD get_js.
|
METHOD get_js.
|
||||||
|
|
||||||
|
|
||||||
result = `` && |\n| &&
|
result = `` && |\n| &&
|
||||||
`sap.ui.define( "z2ui5/DebuggingTools" ,[` && |\n| &&
|
`sap.ui.define( "z2ui5/DebuggingTools" ,[` && |\n| &&
|
||||||
` "sap/ui/core/Control",` && |\n| &&
|
` "sap/ui/core/Control",` && |\n| &&
|
||||||
|
@ -136,7 +137,7 @@ CLASS Z2UI5_CL_FW_CC_DEBUGGING_TOOLS IMPLEMENTATION.
|
||||||
` displayEditor (oEvent, content, type, xcontent = "") {` && |\n| &&
|
` displayEditor (oEvent, content, type, xcontent = "") {` && |\n| &&
|
||||||
` oEvent.getSource().getModel().oData.editor_visible = true;` && |\n| &&
|
` oEvent.getSource().getModel().oData.editor_visible = true;` && |\n| &&
|
||||||
` oEvent.getSource().getModel().oData.source_visible = false;` && |\n| &&
|
` oEvent.getSource().getModel().oData.source_visible = false;` && |\n| &&
|
||||||
` oEvent.getSource().getModel().oData.isTemplating = content.includes("xmlns:template") ? true : false;` && |\n| &&
|
` oEvent.getSource().getModel().oData.isTemplating = content?.includes("xmlns:template") ? true : false;` && |\n| &&
|
||||||
` oEvent.getSource().getModel().oData.value = content;` && |\n| &&
|
` oEvent.getSource().getModel().oData.value = content;` && |\n| &&
|
||||||
` oEvent.getSource().getModel().oData.previousValue = content;` && |\n| &&
|
` oEvent.getSource().getModel().oData.previousValue = content;` && |\n| &&
|
||||||
` oEvent.getSource().getModel().oData.xContent = xcontent;` && |\n| &&
|
` oEvent.getSource().getModel().oData.xContent = xcontent;` && |\n| &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user