web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Run report Without request page

(0) ShareShare
ReportReport
Posted on by 2,390

I am calling the a report from process only report and I dont want system to show request page .When I use the command REPORT.RUNMODAL(50008,True,FALSE,grecTest);

Report is showing request page but if I use REPORT.RUNMODAL(50008,FALSE,FALSE,grecTest);

It is not running the report. I have set UseRequestPage property of report as NO

*This post is locked for comments

I have the same question (0)
  • mmv Profile Picture
    11,471 on at

    Hi,

    REPORT.RUNMODAL(50008,FALSE,FALSE,grecTest); is the correct statement.  Did you check what is the value in grecTest?  Is it yielding any record?  Is the grecTest is of the same type as DataItem set in the report?

    Check whether grecTest is yielding any data.  If it's yielding any data, pls run the report separately using that data and check whether the report is running.

    Best Regards,

    Mahesh

  • NavTech Profile Picture
    2,390 on at

    grecTest is correct and getting data correctly because when i use statement REPORT.RUNMODAL(50008,TRUE,FALSE,grecTest); then it run the report request page with correct values and on preview report shows correct result.but when I use REPORT.RUNMODAL(50008,FALSE,FALSE,grecTest); nothing happens. when I used debugger code of report is executing but don't know why there is no preview.  

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Your statement should work properly try below two scenarios

    REPORT.RUNMODAL(50008,FALSE,TRUE,grecTest) and if that does not work try

    grecTest.FINDLAST;

    grecTest.SETRECFILTER;

    Report.RUN(50008, FALSE, FALSE, MyRec);

    or

    grecTest.FINDLAST;

    grecTest.SETRECFILTER;

    Report.RUN(50008, FALSE, TRUE, MyRec);

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at

    Set the DataItemTableView keys for the every dataitems in the report and try.

  • mmv Profile Picture
    11,471 on at

    Hi,

    Set the default printer as PDF (if you have) and could you try whether the below works:-

    REPORT.RUNMODAL(50008,FALSE,TRUE,grecTest);

    Best Regards,

    MMV

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans