(not possible)- generic table

Reinhard
Member Posts: 249
HI I want to learn how to use recordRef. Specifically:
automated reports must skip past the reqForm, but filters are still necesary, so we have to filter the table and then pass it in to the report. But there are different reports with different tables, so I don't want to use a table variable, since I have to specify the subtype.
this won't work... since it is expecting a record and not a recordRef
I hope you understand my question. Thanks for your time!
automated reports must skip past the reqForm, but filters are still necesary, so we have to filter the table and then pass it in to the report. But there are different reports with different tables, so I don't want to use a table variable, since I have to specify the subtype.
createPDF(intReport : integer, recRef : recordRef) //set up PDFCreator as printer... then: REPORT.RUNMODAL(ReportID,FALSE,TRUE,recRef);
this won't work... since it is expecting a record and not a recordRef
I hope you understand my question. Thanks for your time!
0
Answers
-
The process in which I create PDFs using PDFCreator is...
-
1. Call a function to activate PDFCreator.
2. Apply filters etc etc print report. (At your own leisure; remotely from PDFPrinter function.)
2a. (PDFCreator::eReady reverts printer back to default system printer and terminates DLL instance)
3. /color][color=red]FoundIt[/color] := [color=darkredWaitForFile(strFilePath : Text, intSeconds : Integer)
4. Attach to E-mail, Load into Table as BLOB, .... etc
Sorry for the colours... I got bored.0 -
unfortunately reports cannot accept recRef as you found out.
You can still use recRef in your function, it's just you have to write a huge case statement and copy the filters to actual rec variable and then call the report.
There is also one more issue with reports in that you can only pass one record to it.
So if you have a report with two dataitem with filters, you can only pass on record.
I would rather take another approach.
I would modify the reports and add a function to get the parameters an apply them to dataItems instead, only if you are running under NAS.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