Need to add conditional focus logic in 'CreateNewWork' and 'OpenWorkByHandle' functions present in pzpega_ui_DynamicContainer.js, Pega-UIEngine:07-10-16.
As per our requirement, we need PEGA application to be running in background, we Identified 'window.focus()' present in pzpega_ui_DynamicContainer.js under the functions 'CreateNewWork' and 'OpenWorkByHandle' is causing the PEGA window to come into focus. We have done private edit, commented those steps and tested.. it made PEGA application stay in background.
As this script is part of pzpega_ui_DynamicContainer.js, we are unable to suppress it. Please suggest if there is a way we can achieve this.
Please find the complete details in the below message:
Since the rule is final and focus calls are present without any boolean flag, it's not possible to achieve without changes in product. The engineering team should decide how to handle/implement the conditional focus.