do not type data manually in Text field on form???

kishi_g
Member Posts: 162
Is it possible The person do not enter data manually in Text field on form.
he use the lookup button on that text field. he selects the data through lokup button only.
Thanks & regards,
Kishore.
he use the lookup button on that text field. he selects the data through lokup button only.
Thanks & regards,
Kishore.
0
Comments
-
Have you tried setting the field to non editable? I don't know if that leaves the lookup button, but that's what I would try first.0
-
Hi Denster,
Thanks for ur reply. If we set the property editable as No then we can not select record in the lookup table. the lookup data will not come to the text field if it is in non editable mode.
Thanks & Regards,
Kishore.0 -
I think you will have to set it to editable=no and put some code in the OnLookup-Trigger, e.g.:
if form.runmodal(0,ItemCategory)=Action::LookUpOK then "Item Category Code":=ItemCategory.Code;
0 -
You can put an error in the OnValidate-trigger of the field. And you can put this code in the OnLookup-trigger of the field:
recTheTable."Primary Key Field" := "Your Field On The Form"; IF FORM.RUNMODAL(0,recTheTable) = ACTION::LOOKUPOK THEN BEGIN VALIDATE("Your Field On The Form",recTheTable."Primary Key Field"); CurrForm.SAVERECORD; END;
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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