mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 07:39:24 +08:00
add setTimeout for follow_up_action & update xml v (#1024)
add setTimeout for follow_up_action, in order to finish set promises by controls. update xml view
This commit is contained in:
parent
f615819a2b
commit
29b9072f4e
|
@ -385,15 +385,17 @@ CLASS Z2UI5_CL_CORE_HTTP_GET IMPLEMENTATION.
|
|||
` if (sap.z2ui5.oResponse.PARAMS?.S_VIEW?.CHECK_DESTROY) {` && |\n| &&
|
||||
` sap.z2ui5.oController.ViewDestroy();` && |\n| &&
|
||||
` };` && |\n| &&
|
||||
` if (sap.z2ui5.oResponse.PARAMS?.S_FOLLOW_UP_ACTION?.CUSTOM_JS){` && |\n| &&
|
||||
` let mParams = sap.z2ui5.oResponse?.PARAMS.S_FOLLOW_UP_ACTION.CUSTOM_JS.split( "'");` && |\n| &&
|
||||
` if(sap.z2ui5.oResponse.PARAMS?.S_FOLLOW_UP_ACTION?.CUSTOM_JS) {` && |\n| &&
|
||||
` setTimeout(() => {` && |\n| &&
|
||||
` let mParams = sap.z2ui5.oResponse?.PARAMS.S_FOLLOW_UP_ACTION.CUSTOM_JS.split("'");` && |\n| &&
|
||||
` let mParamsEF = mParams.filter((val, index) => index % 2)` && |\n| &&
|
||||
` if(mParamsEF.length) {` && |\n| &&
|
||||
` sap.z2ui5.oController.eF.apply( undefined , mParamsEF);` && |\n| &&
|
||||
` } else {` && |\n| &&
|
||||
` Function("return " + mParams[0])();` && |\n| &&
|
||||
` }` && |\n| &&
|
||||
` }` && |\n| &&
|
||||
` },100);` && |\n| &&
|
||||
` };` && |\n| &&
|
||||
|\n| &&
|
||||
` sap.z2ui5.oController.showMessage('S_MSG_TOAST', sap.z2ui5.oResponse.PARAMS);` && |\n| &&
|
||||
` sap.z2ui5.oController.showMessage('S_MSG_BOX', sap.z2ui5.oResponse.PARAMS);` && |\n| &&
|
||||
|
|
|
@ -7706,7 +7706,7 @@ CLASS Z2UI5_CL_XML_VIEW IMPLEMENTATION.
|
|||
( n = `fixedBottomRowCount` v = fixedBottomRowCount )
|
||||
( n = `minAutoRowCount` v = minAutoRowCount )
|
||||
( n = `visibleRowCount` v = visiblerowcount )
|
||||
( n = `toggleopenstate` v = toggleopenstate )
|
||||
( n = `toggleOpenState` v = toggleopenstate )
|
||||
( n = `visibleRowCountMode` v = visiblerowcountmode ) ) ).
|
||||
|
||||
ENDMETHOD.
|
||||
|
|
Loading…
Reference in New Issue
Block a user