OnInputChange-Trigger

MFK
Member Posts: 17
hi there!
I want to trace a input in a textbox (with an global as source-expression).
Everytime the input is changed the OnInputTrigger is called - but how can I fetch the value of the field?
I want to enter a number (say itemno.) and if I enter a * the code in the OnInputchange should catch that and call a function.
Possible???
TIA,
Martin
I want to trace a input in a textbox (with an global as source-expression).
Everytime the input is changed the OnInputTrigger is called - but how can I fetch the value of the field?
I want to enter a number (say itemno.) and if I enter a * the code in the OnInputchange should catch that and call a function.
Possible???
TIA,
Martin
0
Comments
-
The following example should be placed in the 'OnValidate trigger'.
It only works when you validate de textbox after you entered the '*'.
vars:
t:int
ch:text
itemnr:text
t:=STRLEN(itemnr);
IF t>0 THEN BEGIN
ch:=COPYSTR(itemnr,t,1);
IF ch='*' THEN MESSAGE('ok');
END;
I hope this will get you in the right direction.
0 -
thanks, but tjis is not that what I really need. Maybe my description was not exact enough.
I want to do something - that is called "incremental search". After each keystroke (without validating it with ENTER) should the search be performed. You can see that in Navision in the Find-Dialog with "Find as you type" enabled.0 -
I understand, and understood. What happens in the Find-Dialog, can not be programmed in C/SIDE or C/AL.
What I mean is that what you want to do, is not posible in Navision.
...what you can do, is build a form in VB or C++ and implement the incremental search using C/FRONT. The form should be in a ActiveX control that can be called by Navision. This will work, as long as you make your form modal, but depending on the data you want to search, it will be relatively slow.
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