Disable Lookup from fields on a form.

jensthomsen
Member Posts: 173
Hi
Are there any ways of preventing a lookup from a field on a certain form: For example on a copy of the customer card, I want to prevent the user from making F6 in the 'Post Code' field (I want to do this, because I'm changing company on the customer record, and don't want to do this for all the related tables).
Jens
Are there any ways of preventing a lookup from a field on a certain form: For example on a copy of the customer card, I want to prevent the user from making F6 in the 'Post Code' field (I want to do this, because I'm changing company on the customer record, and don't want to do this for all the related tables).
Jens
0
Comments
-
There is an OnLookup trigger for textboxes. If there is no code in this trigger then the related fields OnLookUp Trigger is used.
The way I see it there are 2 possible options:
1) Use a text box and a text variable that are not actually the field that you are concerned with and then just copy the value back & forth between the onscreen variable and the field.
2) add a comment or some other code to the OnLookup trigger. If there is any code including a comment in the textboxes OnLookup trigger it should cause Navision to ignore the default field's OnLookup trigger. You should test this as it's been a while since I've played with that & it may not work in every version.0 -
Hi,
You can also do this by changing the Lookup Property of the TextBox to No. By Default it says <No>, but by changing it No, you won't get the Lookup arrow in the form.
Thanks0 -
That worked for me thanks !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