title: Oracle APEX Compare Two Items Values to Fire a Dynamic Action
body: <p>I want to create a Dynamic Action thats when my page item P2014_BALANCE &lt; P2014_CURRENT_PRICE then P2014_CURRENT_PRICE gets the static value 0.
  The problem is that i can't compare these two page items. I try to when section in my Dynamic Action to use Javascript expression like this:<p></p>
  <pre><code>if(apex.item( &quot;P2014_CURRENT_PRICE &quot; ).getValue() &lt; apex.item( &quot;P2014_CURRENT_PRICE &quot; ).getValue()){
  alert('Wrong Number');
  };
  </code></pre>
  <p>but when my page loads gets an error (even Fire on Initialization = False).</p>
  <p>I also try this:
  <a href="https://i.stack.imgur.com/NTTY7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NTTY7.png" alt="enter image description here" /></a></p>
  <p>still nothing.</p>