Basic Flow of Reports

sankar
sankar Member Posts: 79
Hi All,

I have some doubts regarding the flow of reports . i.e i am having three dataitems.. Like vendor ledger entry, Purchase inv. header, Purchase inv. Line.. i have indented the three dataitems.. can any one explain how the report flow will occur.. like Header,footer etc.

Thanks in advance.. I have referred manuals but little confusing....
Everything is Possible

Comments

  • markborges
    markborges Member Posts: 170
    Hi there sankar. That's what I figured out of the Developer Guide:

    Let's suppose 4 dataitems as below:

    1-Sales Invoice Header (SIH)
    1.1-Customer (CU)
    1.1.1-Contacts (CO)
    2-Purch. Inv. Header (PIH)

    Then, the report will execute Header, Body and Footer as follow:


    SIH.HEADER
    SIH.GROUPHEADER
    SIH.BODY
    -CU.HEADER
    -CU.GROUPHEADER
    -CU.BODY
    --CO.HEADER
    --CO.GROUPHEADER
    --CO.BODY
    --CO.GROUPFOOTER
    --CO.FOOTER
    -CU.GROUPFOOTER
    -CU.FOOTER
    SIH.GROUPFOOTER
    SIH.FOOTER

    PIH.HEADER
    PIH.GROUPHEADER
    PIH.BODY
    PIH.GROUPFOOTER
    PIH.FOOTER


    Note that sub-dataitems repeat its complete cycle every "body" from the parent dataitem. This means that for each record on SIH dataitem, you'll have all header, gheader, body, CU cycle, gfooter and footer again.

    Remember that the GroupHeader and GroupFooter are processed only if applicable.

    :wink:
    Marcelo Borges
    D365 Business Central Solutions Architect
    BC AL/NAV C/AL Developer
    BC Repositories.com
  • sankar
    sankar Member Posts: 79
    Hi Mark

    Thanks for the explanation. It has given idea about the flow. Thanks again...
    Everything is Possible
  • sankar
    sankar Member Posts: 79
    Thanks again mark
    Everything is Possible
  • kine
    kine Member Posts: 12,562
    The diagram of trigger flow is part of the Designer guide which is on the install cd in doc folder.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.