Running Apex 22.2.5…
I have an interactive grid on the left side, and a static region on the right.. when I click on my IG, I call a dynamic action that generates a URL to another page, and displays it within an iFrame on my static region.. calling this code
<script type="text/javascript"src="https://static.oracle.com/cdn/cec/api/oracle-ce-ui-2.1.js"></script>
<script>
function switchIframe(frameSource)
{
ifrm = document.getElementById('MessageiFrame');
ifrm.src = frameSource;
}
</script>
The problem I have is after the javascript is run, the iframe has focus and not the main page, which stops me from using arrows on the IG, or adding keyboard shortcuts.
I tried adding focus back on my page at the end of the dynamic action, but it did not work.
Any ideas on how to get focus back after the javascript call?
Thanks,
Scott