follow_up_action fixes and enhance (#1022)

This commit is contained in:
choper725 2024-03-17 23:11:15 +02:00 committed by GitHub
parent 4cc928b8d3
commit f615819a2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -384,11 +384,17 @@ CLASS Z2UI5_CL_CORE_HTTP_GET IMPLEMENTATION.
` sap.z2ui5.oResponse = response;` && |\n| &&
` 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?.FRONTENT_EVENT){ let mParams = sap.z2ui5.oResponse.PARAMS.S_FOLLOW_UP_ACTION.FRONTENT_EVENT.split( "'"); mParams.splice(0,1); mParams.splice(1,1); sap.z2ui5.oCo` &&
`ntroller.eF.apply( undefined , mParams); }` &&
|\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| &&
` if (sap.z2ui5.oResponse.PARAMS?.S_VIEW?.XML) { if ( sap.z2ui5.oResponse.PARAMS?.S_VIEW?.XML !== '') {` && |\n| &&