Jump to content

Align Total & Subtotal Rows


Recommended Posts

I created an HTML block to create a link from a Calculated Field column in a tabular report.

In the footer, I added the following JavaScript to hide the Calculated Field which happens to be the 3rd column in the header and the data rows.

 

<script>

var CalcFieldIndex = 3;
var ff = document.querySelectorAll("table[id*='cbTable'] tr th:nth-child("+ CalcFieldIndex +"),table[id*='cbTable'] tr[id*='DataRow'] td:nth-child("+ CalcFieldIndex +")");


  setTimeout(function(){
    ff.forEach( function(elem) {
      elem.style.display = "none";
    });
  }, 10);


</script>

But Totals and Subgroups apparently do not have the same number of columns and they do not align with the rest of the table.  I know I need to make changes to the Java script.

Please check the image of the report.

 

 

Thanks!

Capture.PNG.b7cc985ba85e493472758718a865523a.PNG

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...