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:
choper725 2024-03-18 15:51:42 +02:00 committed by GitHub
parent f615819a2b
commit 29b9072f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 10 deletions

View File

@ -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| &&
` 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| &&
` 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| &&
` },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| &&

View File

@ -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.