Help with Report.RUN()

Demonic240
Member Posts: 65
I'm running a report using the Report.RUN; command and it works. However I don't want the request box to pop up. I tried running with the command REPORT.RUN(4129,FALSE,FALSE,report); but it didn't run the report completely. Is there something I'm missing in the code?
0
Comments
-
In the C/AL symbol menu you have functions for the report but also properties. And one of them is UseRequestForm. Set that to false before you use ReportVar.run. But REPORT.RUN(xyz,false) should have worked as well.
BTW careful with RUN since that is not modal. What that means is that the system will launch the report but then move on with to the next line of code which might explain why your report did not finish when you used REPORT.RUN.Apathy is on the rise but nobody seems to care.0 -
And if you set the UseSystemPrinter to False, you need to have printer somehow selected. Common way of calling report is
REPORT.RUNMODAL(REPORT::"ID",False,True,MyRec);
0 -
Is it always safer to use RUNMODAL as opposed to RUN? And if not, what are the situations where you would use one over the other?0
-
This code does exactly what i need it to. I just want it to run silently.
InteractionLogEntry.SETCURRENTKEY("Entry No."); InteractionLogEntry.SETFILTER("Document No.",Rec."Document No."); DeleteEntries.SETTABLEVIEW(InteractionLogEntry); DeleteEntries.RUNMODAL;
When it runs is asks for filters for the report. How can I get it from popping up?0 -
Hello,
make USEREQUESTFORM(FALSE) before calling RUNMODAL.
Br,
Igor Beeone0 -
Ack, I'm sorry. That sounds like it'll work. But I don't know how to code that.0
-
Demonic240 wrote:Ack, I'm sorry. That sounds like it'll work. But I don't know how to code that.
InteractionLogEntry.SETCURRENTKEY("Entry No."); InteractionLogEntry.SETFILTER("Document No.",Rec."Document No."); DeleteEntries.SETTABLEVIEW(InteractionLogEntry); DeleteEntries.USEREQUESTFORM(FALSE); DeleteEntries.RUNMODAL;
0 -
Tyvm. That did the job.0
-
Found this old thread as I need help with this,
I want the re form not to be displayed, but I wnat the system print dialog to show so the user can select no of copies to print. Using this code:
MyRecord.COPY(Rec);
MyRecord.SETRANGE("Document Type", "Document Type");
MyRecord.SETFILTER("No.","No.");
MyReport.SETTABLEVIEW(InteractionLogEntry);
MyReport.USEREQUESTFORM := FALSE;
MyReport.RUNMODAL();
This doesnt show the request form but also doesnt show the system dialog, and no printer is set for this report.
Is this possible in Navision?0 -
Or simply:
InteractionLogEntry.SETCURRENTKEY("Entry No.");
InteractionLogEntry.SETFILTER("Document No.",Rec."Document No.");
REPORT.RUNMODAL(REPORT::"name of your report",FALSE,FALSE,InteractionLogEntry);0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions