Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Run report Without request page

Posted on by 2,382

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

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Run report Without request page

    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

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: Run report Without request page

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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Run report Without request page

    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);

  • NavTech Profile Picture
    NavTech 2,382 on at
    RE: Run report Without request page

    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.  

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Run report Without request page

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans