Activate control

Angelo
Member Posts: 180
Hello, Master Navision
I have a problem to activate control. My scenario :
In Point of Sales system, we know that after we fill item no, then we fill qty(textbox) of the item, n after press enter from keyboard, I hope the item and the quantity show in subform. I hope I dont need to make a button for "enter" again. Just press Enter from keyboard....
So far, I make a button for entering data to subform, I make it invisible. The button's name : ButtonA. When I coding in Onvalidate trigger for Textbox control(qty) :
Currform.ButtonA.activate;
Why, table subform has been filled but, in subform on Form has not appeared yet???
I try second way, I change my code(with the same code above) on OnInputchange trigger for textbox(qty), Success!!!! after input qty, pressing enter, data fill in subform and appear. New problem is : I can not input qty for more than 2 digit, after that, press enter, data in subform not appear.
Anyone can solve my problem???
Why in Onvalidate,it doesnt work? :shock:
I have a problem to activate control. My scenario :
In Point of Sales system, we know that after we fill item no, then we fill qty(textbox) of the item, n after press enter from keyboard, I hope the item and the quantity show in subform. I hope I dont need to make a button for "enter" again. Just press Enter from keyboard....
So far, I make a button for entering data to subform, I make it invisible. The button's name : ButtonA. When I coding in Onvalidate trigger for Textbox control(qty) :
Currform.ButtonA.activate;
Why, table subform has been filled but, in subform on Form has not appeared yet???
I try second way, I change my code(with the same code above) on OnInputchange trigger for textbox(qty), Success!!!! after input qty, pressing enter, data fill in subform and appear. New problem is : I can not input qty for more than 2 digit, after that, press enter, data in subform not appear.
Anyone can solve my problem???
Why in Onvalidate,it doesnt work? :shock:
0
Comments
-
Hello, Mr. Angelo,Angelo wrote:I have a problem to activate control. My scenario :
In Point of Sales system, we know that after we fill item no, then we fill qty(textbox) of the item, n after press enter from keyboard, I hope the item and the quantity show in subform. I hope I dont need to make a button for "enter" again. Just press Enter from keyboard....
You can try this:
in the Trigger from textbox "qty" OnValidate, put CurrForm.SAVERECORD before your Programmcode.
For Exampe:
OnValidate()
CurrForm.SAVERECORD;
IF T.GET("Item No.") THEN BEGIN
T.Qty := Qty;
T.MODIFY;
END;
Hope it can help you.
Regards
Rizal0
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