Find Current Item on Sales Order form
ALopez27
Member Posts: 42
I'm fairly new to NAV, so here is my question:
I want to add functionality on the std. Sales Order form (42), but I need to find out how to tell in code the current sales order LINE, I want to add a menu item on one of the bottom buttons and display info. based on the current item, it seems simple enough, but can someone tell me, how to know which is the current sales order line record?? Thanks.
A.L.
I want to add functionality on the std. Sales Order form (42), but I need to find out how to tell in code the current sales order LINE, I want to add a menu item on one of the bottom buttons and display info. based on the current item, it seems simple enough, but can someone tell me, how to know which is the current sales order line record?? Thanks.
A.L.
0
Comments
-
Open form 42 in design, right click the "Line" menubutton, and take a look at the code behind that button. See how that relates to a function on the subform, and extrapolate a way to implement your requirement. Once you figure out how that works, it should be a piece of cake
0 -
I looked at the "Line" menubutton and it certainly helps, however, one of the lines in the menu has code that it calls similar to the below statement, I see there is a local function in the Sales Line table that is referenced by this (ItemAvailability), however, I'm not sure what the 'SalesLines' parameter after CurrForm is or means or where it's declared, can someone help me with this? Is this some type of control in the actual form? How or where do I see this? Thanks.
CurrForm.SalesLines.FORM.ItemAvailability(0);
A.L.0 -
Open the form in runtime. Turn on the debugger. Execute the menu-item and step through the code. Check which object is open, see what the function does with the parameter value.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
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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
