Getting Company Info
tooo
Member Posts: 138
Trying to get the company info onto a report. I've created a variable and trying to call in into the report with =<Company.Address> only issue im having is how to call it fromn OnInitReport() trigger!?
0
Answers
-
you have created a record variable of company information then you have to set the pointer by using GET or Find method.
i think u have fergot to add this sentences at oninit report
Companyinfo.GET()
hope it will help u.Experience Makes Man Perfect....
Rajesh Patel0 -
do a
company.get;
in the oninitreport() trigger. i bet you're using Company table as a dataitem...in this case, if you want the address field e.g. to be used in onaftergetrecord() trigger of company dataitem, you don't need the above instruction because nav is actually reading the record (which should be the first and the only record in the company table).
in oninitreport() trigger, you haven't read the company table yet, so you must "get" it
Hope it's clear...0 -
I have 'Company' set as a record varibale and i have 'company.get;' in the oninitreport() trigger, keep getting this error:
Any help apprieciated!TableData 0 does not exist.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions