Find record without "Find" Ctrl+F

wesleys
Member Posts: 30
I have a text box in a field that I want to use as a trigger to finding a particular record in the table linked to my form. I am using the OnAfterInput trigger of the text box for my code. I've tried using a GET, and a SETFILTER/FIND, but no matter what I try, the form/table thinks that I want to modify the current record. Hitting pg up or pg down after my code runs, lets me know that the table can not be modified from this form (This is because modifyAllowed is "No", just how I want it, alternately I'm told that I can not rename the record in question).
By the way CurrForm.UPDATE(FALSE) cannot be done from the trigger I am using. I am more than willing to use one of the other triggers for the checkbox as long as it fires off after I type in a string and hit "Enter" (much like scanning a barcode would do).
I feel like I'm going about this the hard way. Is there some simple means of telling the current form to go find the record you want?
By the way CurrForm.UPDATE(FALSE) cannot be done from the trigger I am using. I am more than willing to use one of the other triggers for the checkbox as long as it fires off after I type in a string and hit "Enter" (much like scanning a barcode would do).
I feel like I'm going about this the hard way. Is there some simple means of telling the current form to go find the record you want?
0
Comments
-
1] In the text box use some variable, not field from record.
2] If you want to search after hitting enter (or tab) use OnAfterValidate or OnValidate trigger on the editbox. There you can use CurrForm.Update(false).0 -
That trigger is working much better. Thank you Kine0
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