mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 01:46:19 +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
|
@ -386,6 +386,7 @@ CLASS Z2UI5_CL_CORE_HTTP_GET IMPLEMENTATION.
|
|||
` sap.z2ui5.oController.ViewDestroy();` && |\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| &&
|
||||
|
@ -393,7 +394,8 @@ CLASS Z2UI5_CL_CORE_HTTP_GET IMPLEMENTATION.
|
|||
` } 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