Forms

david.weeks
Member Posts: 96
Hello All
I have setup a new button within the Customer card. When i press this button it opens my new form that I have fitered on Salesperson Code.
Simple question I know - How do I automatically populate the Salesperson code on the new form with the salesperson code on the master form automatically?
Second question - I have a lookup field that is searching on a date field within the accounting period table. However, when the accounting period table is displayed via my lookup field, OK and Cancel are not displayed even though they are on the accounting period form. Ideas?
Thanks
I have setup a new button within the Customer card. When i press this button it opens my new form that I have fitered on Salesperson Code.
Simple question I know - How do I automatically populate the Salesperson code on the new form with the salesperson code on the master form automatically?
Second question - I have a lookup field that is searching on a date field within the accounting period table. However, when the accounting period table is displayed via my lookup field, OK and Cancel are not displayed even though they are on the accounting period form. Ideas?
Thanks
0
Comments
-
DID YOU MAKE THE SALESPERSON CODE A KEY?0
-
Hi
Salesperson code is not a key within my table.
Also, when I try to create a report an use Accounting Period as a data item, and make date start a required field, this still doesnt appear as a lookup.
But obviously, when i do the same for fields such as country code and customer within customer for example, these are lookup fields.
Ideas?0 -
Hi,
for your salesperson form :
1 you form should have the salesperson table as sourcetable.
2 In the button properties, there are 3 options you must enter
- RunObject : Enter 'Form xxxxx' where xxxxx is the name of your form
- RunFormLink : Specify the link between your customer table and the
salesperson table
- RunFormLinkType : Set to OnUpdate.
now, every time you choose a new customer, the salesperson form will be updated.
Regarding the lookup, did you set it using field properties, or did you do it using code ? If you did it using code, you should have something like :
IF Form.RUNMODAL(....) = Action::LookupOk
the ' Action::LookupOk ' is the trigger for Navision to know it is a lookupform, so he should show the Ok and Canel button.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