Count number of lines in report Groupfoot

rtamesrtames Member Posts: 56
edited 2005-12-20 in Navision Attain
Is there anyway to count the number of lines in a groupfooter and place that number in another footer of the report.

Comments

  • kinekine Member Posts: 12,562
    You can increment some counter in PostSection of the groupfooter and hope that the value will be correctly showed in your footer... :-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • rtamesrtames Member Posts: 56
    I'm just a beginner with navision so can you show me some code to do this?
  • kinekine Member Posts: 12,562
    In OnPostSection of your groupfooter you can add code like:
      if CurrReport.SHOWOUTPUT then
        NoOfLines := NoOfLines + 1;  //there can be 2 or 3 or... if the groupfooter has more lines
    

    and then use NoOfLines as the variable on some Footer...

    Of course, do not forget to clear the variable in case you want to count from beginning. NoOfLines is integer global variable.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.