NAV Reporting: Getting variables assigned in line level to work in the header Level afterwards?

jsl_dkjsl_dk Member Posts: 24
In report 1307 I need to rename the document, based on information from the line level

Its easy to make a Global variable and assign a value to that.

But the header section is rendered before the line section and it seems like there is no way to pass the value to the header section afterwards?

4fhctufhvv20.png


Answers

  • JuhlJuhl Member Posts: 724
    Set a global variable in the line loop.
    Set the value via get/set.code to update header in VS.
    Follow me on my blog juhl.blog
  • jsl_dkjsl_dk Member Posts: 24
    Hi thanks for your input.
    I use the C/Side C/AL NAV invironment

    VS: do you mean Visual Studio?
  • jsl_dkjsl_dk Member Posts: 24
    I have allready made a Global variable and signed the value from the lines to it.

    It works fine - but the global variable does not update the value in the report.
  • JuhlJuhl Member Posts: 724
    You need to set the value in body and get it in header.
    Look at 206.

    Visual Studio yes
    Follow me on my blog juhl.blog
  • LCostaLCosta Member Posts: 33
    You can also do it by ReportItems!"textboxName".Value
    The "textboxName" is the name of the TextBox that has the value in the body of the report.
Sign In or Register to comment.