company Address not previwing in report

Novice_NAV_User
Member Posts: 6
I would like to show the company Phone in the report. In global variables i have added company Information record.In Header section , i have taken textbox control and given sourceexpr as CompanyInformation."Phone No.", saved and seen the preview of the report. But the Company's phone no is not showing in the report. I have checked company information table, all the company information is fed in that table including phone numbers. I don't understand what is the reason? pls help me.
0
Comments
-
Write the following code in onprereport trigger
CompInfo.GET;
where CompInfo is Company Inforormation0 -
Yep, your variable refers to a table, but you haven't told NAV to go get a record from that table yet. Since there is only one record in CompanyInformation you can just do a .GET
If you haven't already check out GET, SETRANGE, SETFILTER, and all of the FIND functions in the client help.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