Search code examples
reportaxaptax++dynamics-ax-2009

SectionGroup Footer of AX reoport is not in provided location


I have a problem with report, just created a generated design and added two sectionGroups from which each of sectionGroup has 3 sections (header,body,footer).

All the data is working perfectly but when I am running the report, sectionGroup footer is placing in wrong location, I just want every footer inside it's related sectionGroup.

My Report Design

The Output of above Report:

Output of report

Maybe there I have more than 10 sectionGroups, I want the same design for all.

Thanks in advance.


Solution

  • You may succeed with using:

    element.addPendingSums();
    

    Call it before printing the second header (before super() in executeSection).

    Or maybe you need to have the second section group nested in the first body (your data does not look like that).