How can I read the value of a textbox
guidorobben
Member Posts: 157
I want to know in the trigger "OnInputChange" what the current value of the textbox is? I know there is OnAfterInput, but this trigger never fires when you press the del or backspace.
I want to know what key someone pressed...
Guido
I want to know what key someone pressed...
Guido
0
Comments
-
Hi. I Thinks that the Trigger OnInputChange fires only when the User is making entry in the Text Box, when he Is writing something...
Pressing Delete or Backspace isn't IMHO an Entry.
when you Delete anything Press Enter, that must be work.
(Oo)=*=(oO)0 -
I got that far. That's because another event is triggered when pressing enter. I downloaded the calculator example from the webpage. I made the exnter work like the '=' button. But I want to use the del and/or the backspace button to delete one entry.
THis is where the problem is, I don't know when del or backspace is being pushed. If I have the value of the textbox, I can check what the current value is and make my decission what has been entered. Now I have a variable as SourceEntry. But this isn't updated in the trigger. So I only have the old value. I could use he if oldvalue = newvalue, but then I have no idea if someone pressed enter of del/BS
I also tried using this method to read the textbox:
MyText := CurrForm.MyTextbox
But now I always get the text 'In Use' ..
Guido0 -
Hi all,
With the OnInputChange-Trigger you can get, when there are made changes in the Textbox, but there is no way to get the actual value after every changing of the Textbox. Only Navision knows the real idea behind this Trigger. :?
Regards,
Frank0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 327 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