building reports from a form

martensens
Member Posts: 7
Good morning,
i want to open a ledger entry report starting from the item card (form).
how can i transfer the filters from form to report.
Is there any idea ?
Thank's in advance
Steve
i want to open a ledger entry report starting from the item card (form).
how can i transfer the filters from form to report.
Is there any idea ?
Thank's in advance
Steve
0
Comments
-
You can create a function in your report, which you call before you start your report. The parameters of the function contain your values with which you want to filter in your report. And in the function you can set with these values your filter or you can use the values later in your report.
Hope this helps.
Regards,
Frank0 -
martensens wrote:Good morning,
i want to open a ledger entry report starting from the item card (form).
how can i transfer the filters from form to report.
Is there any idea ?
Thank's in advance
Steve
For Example in the report the function would look like this:
FilterReport(DateVal : Date, ItemFilter2 : Code)
"Item Ledger Entry".SETFILTER("Posting Date",DateVal);
"Item Ledger Entry".SETFILTER("Item No.",ItemFilter2);
From the form the code could look like this:
ItemReport.FilterReport(Today,"No.");
ItemReport.RUN;0 -
and if you don't want to change your report you can make use of
Report.SETTABLEVIEW(Record);rYourILE.SETFILTER("Item No.",rec."no."); rYourILE.SETFILTER("Posting Date",rec."Date Filter"); rYourILE.SETFILTER("Location",rec."Location Filter"); rpYourReport.SETTABLEVIEW(rYourILE); rpYourReport.RUNMODAL;
®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯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