Passing variables from form to report?

portect
Member Posts: 9
Im new to dyna AX programming and I would like to know how can I pass a variables from a form to a report to be used as filter criteria? Im calling the form from a report by overridding the 'run' method of the report. Can someone show me codes how to do this? Thanks
0
Comments
-
Hi,
Information can be passed between objects with 'Args'.Bert van Dijk
Rotor BV0 -
Hi Portect,
can u specify, from which form u r trying to pass variable.
In any case, u hav to use Args.
Is that a dialog form, form where user enter any value and on that values , u hav to filter records of ur table.If that is the case, u can extend ur class by RunBaseReport and override the dialog method to create a dialog form.On Report, in init method u can catch the caller class and get the user entered value from that class by a method on form.
If the value u r using to filter records on report is the field of ur datasource of form, then u hav to catch the record on the report in init() method.After catchin the record, u can use the value of that specific field to filter records on report.
Hope it will help u somehow...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