Jump to content
  • 0

Group Name on Subtotal Aggregation label


ivan77

Question

2 answers to this question

Recommended Posts

  • 0

Hello @ivan77,

As I can see the field you mentioned is the second field and grouping is applied to the 1st and 2nd fields. 

If this is correct, you may test the following solution:

1) As of now you have the 'No Label' Group aggregation label as far as I understand

4P05Iax.png

2) This code should be added to the Footer section of the Results page (disable the HTML editor on the Advanced tab before pasting the code):

<script>
document.addEventListener('DataPageReady', function (event) {
   
let secondGroupLabels = document.querySelectorAll('td[class*="cbResultSetGroup2Label"]');
let subtotalLabel = document.querySelectorAll('td[class*="cbResultSetGroup2SubTotal"]');

secondGroupLabels.forEach((label, index) => {
    subtotalLabel[index].innerText = 'Sub Total ' + label.innerText;
});

});
</script>

Hope this helps!

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
Answer this question...

×   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...