title: Oracle apex 5 - redirecting to page from a dynamic action
body: <p>I have a classic report where the last few columns are fa icons.</p>
  
  <p>Using jQuerySelector i capture the "on click" event.</p>
  
  <p>I do some calculations, and get back a number that I wanna pass to another page. I assign that number to a page item, that has an "on-change" event. Inside the event I have an "Execute JavaScript Code" containing the following:</p>
  
  <pre><code>var href = 'f?p=&amp;APP_ID.:41:&amp;SESSION.::::P41_ITEM:' +  $("#P40_ITEM").val();
  
  window.location = href;
  </code></pre>
  
  <p>Now... the thing that bothers me the most with this, is that I already have code like this inside a dynamic tree, that's used for navigation, and it works as expected. But this get's bypassed all together. I encapsulated the "Execute JavaScript Code" with two "Execute PL/SQL Code" blocks with logs, and both of them recorded in the logs. Also, when i had "Fire on Page Load" set to yes the redirect happens.</p>
  
  <p>I also tried something like this, thinking there's some mysterious reason it won't execute js code:</p>
  
  <pre><code>owa_util.redirect_url('f?p=&amp;APP_ID.:10:&amp;APP_SESSION.');
  
  apex_application.stop_apex_engine;
  </code></pre>
  
  <p>but this also doesn't work(can't even find if it's even suported in apex 5).</p>
  
  <p>Does anyone know of a reason why this isn't working? Or another way to call a page redirect from a dynamic action?
  tnx</p>