mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 11:00:25 +08:00
view model update event logic (#1002)
This commit is contained in:
parent
e48640eff0
commit
0a6b38e7ee
|
@ -39,7 +39,17 @@ CLASS z2ui5_cl_core_event_srv IMPLEMENTATION.
|
||||||
|
|
||||||
result = |{ z2ui5_if_core_types=>cs_ui5-event_backend_function }(['{ val }'|.
|
result = |{ z2ui5_if_core_types=>cs_ui5-event_backend_function }(['{ val }'|.
|
||||||
|
|
||||||
|
IF s_cnt-model_name IS NOT INITIAL.
|
||||||
IF s_cnt-check_allow_multi_req = abap_true.
|
IF s_cnt-check_allow_multi_req = abap_true.
|
||||||
|
IF s_cnt-check_view_destroy = abap_true.
|
||||||
|
result = result && `,true,true, "` && s_cnt-model_name && `"`.
|
||||||
|
ELSE.
|
||||||
|
result = result && `,false,true, "` && s_cnt-model_name && `"`.
|
||||||
|
ENDIF.
|
||||||
|
ELSE.
|
||||||
|
result = result && `,false,false, "` && s_cnt-model_name && `"`.
|
||||||
|
ENDIF.
|
||||||
|
ELSEIF s_cnt-check_allow_multi_req = abap_true.
|
||||||
IF s_cnt-check_view_destroy = abap_true.
|
IF s_cnt-check_view_destroy = abap_true.
|
||||||
result = result && `,true,true`.
|
result = result && `,true,true`.
|
||||||
ELSE.
|
ELSE.
|
||||||
|
|
|
@ -317,10 +317,12 @@ CLASS Z2UI5_CL_CORE_HTTP_GET IMPLEMENTATION.
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` sap.z2ui5.isBusy = true;` && |\n| &&
|
` sap.z2ui5.isBusy = true;` && |\n| &&
|
||||||
` BusyIndicator.show();` && |\n| &&
|
` BusyIndicator.show();` && |\n| &&
|
||||||
* ` let appStart = sap.z2ui5.oBody.APP_START;` && |\n| &&
|
|
||||||
` sap.z2ui5.oBody = {};` && |\n| &&
|
` sap.z2ui5.oBody = {};` && |\n| &&
|
||||||
* ` sap.z2ui5.oBody.APP_START = appStart;` && |\n| &&
|
` if ( args[0][3] ) {` && |\n| &&
|
||||||
` if ( sap.z2ui5.oController == this ) {` && |\n| &&
|
` sap.z2ui5.oBody.XX = sap.z2ui5.oView.getModel().getData().XX;` && |\n| &&
|
||||||
|
` sap.z2ui5.oBody.VIEWNAME = 'MAIN';` && |\n| &&
|
||||||
|
` }` && |\n| &&
|
||||||
|
` else if ( sap.z2ui5.oController == this ) {` && |\n| &&
|
||||||
` sap.z2ui5.oBody.XX = sap.z2ui5.oView.getModel().getData().XX;` && |\n| &&
|
` sap.z2ui5.oBody.XX = sap.z2ui5.oView.getModel().getData().XX;` && |\n| &&
|
||||||
` sap.z2ui5.oBody.VIEWNAME = 'MAIN';` && |\n| &&
|
` sap.z2ui5.oBody.VIEWNAME = 'MAIN';` && |\n| &&
|
||||||
` }else if ` && |\n| &&
|
` }else if ` && |\n| &&
|
||||||
|
|
|
@ -48,6 +48,7 @@ INTERFACE z2ui5_if_types
|
||||||
BEGIN OF ty_s_event_control,
|
BEGIN OF ty_s_event_control,
|
||||||
check_view_destroy TYPE abap_bool,
|
check_view_destroy TYPE abap_bool,
|
||||||
check_allow_multi_req TYPE abap_bool,
|
check_allow_multi_req TYPE abap_bool,
|
||||||
|
model_name TYPE string,
|
||||||
END OF ty_s_event_control.
|
END OF ty_s_event_control.
|
||||||
|
|
||||||
ENDINTERFACE.
|
ENDINTERFACE.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user