Customer

Navi_Learner
Member Posts: 356
I tried to add salesperson to the top customer list, but it will not retrieve the correct info. There are three dataitem, integer(heading), customer, integer(print loop).
Any advice? Thanks!
Any advice? Thanks!
0
Comments
-
are you just trying to show the salesperson code on the report? you can get the information from the customer record.
since this is a ranking report there is probably an array being built with the customer number, name, sales volume and that is what is output in the print loop. you would have to expand the array dimensions, write the slsp code into the array, and then add that array dimension to the output.
you might be able to cheat and put some code on the OnPreSection of the report to get a copy of the customer record using the array dimension holding the customer no., and then display that as a control.
a little vague, but maybe enough to get you started?kind of fell into this...0 -
Openthe report View the Sections
On Print Loop, Body (1) add
OnPreSection()
Customer.GET(TopNo);
Add a textbox on On Print Loop, Body (1)
with SourceExp = Customer."Salesperson Code"
really should change the orig TOPIC NAME to something better than juast Customer
Perhaps "Add Salesperson Code to Customer Top X List"0 -
Thanks very much0
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