OnInputChange

jesam
Member Posts: 100
Somebody posted this question back in 2002 but there were no answers so I am going to try again because now I have the same problem.
The Help files say :
OnInputChange
The C/AL code in this trigger is executed while the user makes entries into a text box. You can use this trigger to check the entries the user is making as he or she enters information.
The problem is that they do not say (what a surprise) how to get a hold of what the user enterred IN THIS TRIGGER.
I know it is possible to use the OnAfterInput trigger, but that is oky executed AFTER the textbox has lost its focus, so that is no good.
Does anybody have a solution for this problem ?
The Help files say :
OnInputChange
The C/AL code in this trigger is executed while the user makes entries into a text box. You can use this trigger to check the entries the user is making as he or she enters information.
The problem is that they do not say (what a surprise) how to get a hold of what the user enterred IN THIS TRIGGER.
I know it is possible to use the OnAfterInput trigger, but that is oky executed AFTER the textbox has lost its focus, so that is no good.
Does anybody have a solution for this problem ?
0
Comments
-
I have similiar problem..
I'm trying to stop allow writing, if next character doesn't mark to my set ('0'..'9')0 -
I still haven't found an answer to that problem, so we'll just have to hope somebody else chimes in ...0
-
I've found 2 ways, but that not what I want..
1. Put CurrForm.UPDATE to OnInputChange.. But then You can't get the last character.
2. Try to manipulate Text in trigger OnFormat, there is almost what I want, becouse also have to put CurrForm.UPDATE to OnInputChange, and then the value is selected.. UPDATESELECTED(FALSE) in OnFormat do nothing..0 -
One solution that works for me:
- Set property AutoEnter to Yes
- Use Variable Code/Text with length 1
- Use OnAfterInput instead of OnInputChange
- Handle character thereReinder van der Veen
Reinder ICT Nijmegen
Wolfskuilseweg 96 - 6542 JM NIJMEGEN - The Netherlands
Tel.: +31 (0) 24 373 81 38 - Mob.: +31 (0) 6 20 650 311
E-mail: reindervdv@gmail.com0
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