Our requirement is to add a language toggle dropdown on a portal. When the user switch language, whatever inside the portal should switch to a new language. We have a case running inside the portal. The case is designed with ScreenFlow. The case is running inside an iframe.
In the language dropdown, we change the prefered language of the operator. Then we refresh the iframe and hope the case inside the iframe will change language immediately. However we are always getting this error: This action is not allowed as it is outside the current transaction.
Further testing shows that any iframe refresh will cause this error, whether we change the preferred language or not.
Question: What can we do to make the case inside the iframe to change language immediately after the user switch the language in the portal?
***10/13/16: Updated by Moderator: Marissa to add SR Details***
For the action which sends a ajax calls such as refresh section and so, you can use the below Local-Change to show a busy indicator immediately on click on button / dropdown.
Configure the button action in such a way that you run the script "setBusyIndicatorCustom()" before the action that changes the language is executed or after the refresh action, followed by Run Script "resetBusyIndicatorCustom()"
I tried your suggestion but unfortunately it didn't work. I could see all the if() are trun and the pega statement inside the if blocks were executed. But we still get the same error. Please note that we try to reload the entire iframe from a dropdown outside of the iframe. the iframe contains the case. Below is the details: