Setting focus on Same control if No. already exists

upasanisandip
Member Posts: 405
Hi all,
I have written code in Sales Header table under CustomerPurchaseNo field OnValidate trigger.
PurchaseOrderNo - OnValidate()
I want to set focus on Same control that is PurchaseOrderNo if it is already exists.
It is checking the Customer Purchase Order No. is already exist or not but cusrsor is moving on next control.
I want to set cursor on same control if it is already exists.
Anyone have idea about this set focus?
thanks
I have written code in Sales Header table under CustomerPurchaseNo field OnValidate trigger.
PurchaseOrderNo - OnValidate()
I want to set focus on Same control that is PurchaseOrderNo if it is already exists.
It is checking the Customer Purchase Order No. is already exist or not but cusrsor is moving on next control.
I want to set cursor on same control if it is already exists.
Anyone have idea about this set focus?
thanks
0
Comments
-
You can't set focus on a control on table-level. You need to write your code on a form-trigger instead of a table-trigger.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
If you cause an error in code, it should not let you move to another field. Try adding an ERROR message in the validation trigger.0
-
:-k Is there a command in Navision to set focus?
No one loves you like the one who created you...0 -
Saint-Sage wrote::-k Is there a command in Navision to set focus?
See the C/Side help for ACTIVATE
or search forum for Focus & Activate0
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