Question about lookup
tompynation
Member Posts: 398
How can you make a user allways use the lookup for a field?
For Example,
Take the sales order, you have the 'sell to customer' field.
The users should allways use the lookup and shouldnt be able to fill in a customer number by just typing it
For Example,
Take the sales order, you have the 'sell to customer' field.
The users should allways use the lookup and shouldnt be able to fill in a customer number by just typing it
0
Answers
-
why the user should't fill th field :?:
If your employee knwos the customer No. or his name why he could not inser't this ? I doesn't understand this ..... my customers are very :evil: if they ever must lookup and could not insert the number.
But if you salsorder is only an example ;-) you m,ust do following:
Field Editable = No.
Field - OnLoockup() Trigger
Here you put your source to fill the field after lookup. <- How this is to develop, you know. See the answers for your other questions for lookup .....
RegardsDo you make it right, it works too!0 -
This is done probably to prevent carelessness due to laziness to type in the full Customer No....
eg
2 customers, aaa, aab
user types a, aaa appears when in fact aab is requiredNAV - Norton Anti Virus
ERP Consultant (not just Navision) & Navision challenger0 -
well, the sales order was just an example...
I need this because i fill up an extra variable in the OnLookup:
Productcode - OnLookup(VAR Text : Text[1024];) : Boolean
lv_Recept.RESET;
IF FORM.RUNMODAL(50019,lv_Recept) = ACTION::LookupOK THEN BEGIN
Productcode := lv_Recept.ReceptCode;
ReceptID := lv_Recept.ID;
StandaardProductie := lv_Recept.StandaardProductieHoeveelheid;
And then i use this ReceptID in the Onvalidate trigger
Productcode - OnValidate()
lv_Length := STRLEN(Productcode);
IF lv_Length > 0 THEN BEGIN
CurrForm.POProductFormuleSub.FORM.VISIBLE := TRUE;
CurrForm.POProductGrondstoffenSub.FORM.ClearTempTable;
CurrForm.POProductGrondstoffenSub.FORM.FillTempTable(ReceptID,FALSE); CurrForm.POProductGrondstoffenSub.FORM.VISIBLE := TRUE;
CurrForm.UPDATECONTROLS;
So i needed to be sure that the user has used the lookup0
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