title: Oracle apex: Javascript to display sum of a column in an interactive report based on a checked checkbox row
body: <p>I have an interactive report with a check box (<code>selectunselectall</code>) and column2 (<code>countthisrow</code>) having numbers. I need to display sum of column2 in a text item after the interactive report when a row in column 1 is checked. I assigned a static id to column2 but couldnt figure out how to write a dynamic action with javascript.</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td class=" u-tC" aria-labelledby="selectunselectall" headers="selectunselectall"&gt;&lt;input name="f01" type="checkbox" value="1"&gt;&lt;/td&gt;
      &lt;td class=" u-tC" aria-labelledby="C4665519416385240" headers="C4665519416385240"&gt;id1&lt;/td&gt;
      &lt;td class=" u-tC" aria-labelledby="countthisrow" headers="countthisrow"&gt;1&lt;/td&gt;
      &lt;td class=" u-tC" aria-labelledby="C4665768588385242" headers="C4665768588385242"&gt;abcd&lt;/td&gt;
      &lt;td class=" u-tC" aria-labelledby="C4665808804385243" headers="C4665808804385243"&gt;a&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class=" u-tC" aria-labelledby="selectunselectall" headers="selectunselectall"&gt;&lt;input name="f02" type="checkbox" value="2"&gt;&lt;/td&gt;
      &lt;td class=" u-tC" aria-labelledby="C4665519416385240" headers="C4665519416385240"&gt;id1&lt;/td&gt;
      &lt;td class=" u-tC" aria-labelledby="countthisrow" headers="countthisrow"&gt;2&lt;/td&gt;
      &lt;td class=" u-tC" aria-labelledby="C4665768588385242" headers="C4665768588385242"&gt;abcd&lt;/td&gt;
      &lt;td class=" u-tC" aria-labelledby="C4665808804385243" headers="C4665808804385243"&gt;a&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>