Difference between Report.run and Report.runmodal?

chandrurecchandrurec Member Posts: 560
Hi all,

can anyone explain me the difference between Report.run and Report.runmodal?

Please explain me also in what situation we go for Report.run and Report.runmodal.

please explain all the parameters used in the Report.runmodal with an example.

Thanks in advance.

Regards,
chandru.

Comments

  • BeliasBelias Member Posts: 2,998
    isn't the help online (press F1 while looking at C/AL code of any object) clear?

    P.S.: run something modally (let's take a report for example) means that the program waits until the report is finished before continuing the execution.
    a := 1;
    report.runmodal(111);
    a := 555;
    

    "a" parameter will NEVER evaluate to 555 unless a user not execute or close the report he run. Try it!
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • kinekine Member Posts: 12,562
    You are on som school where you are learning about NAV? I see this question for x time with period half a year... :mrgreen:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.