focus in a header-lines form
coolmck
Member Posts: 2
hi all
we are working around a form based in purchase invoices form, this means a header & lines form. we are trying to capture the focus or the cursor position, because depending where the cursor is (header or lines) we have to perform different functions.
the scenario is the following: if the cursor is in a line of the subform, we have to perform one function called 'A', but if the cursor is in the tab (header), we have to perform another function, called 'B'.
the selection between 'A' or 'B' depends on the OnPush trigger placed in the main form.
we tryed to control in which form is the cursor using the OBJECTID function, but it didn't work as expected. so the question is how can we control the cursor position between forms in a header & lines form?
zanx.
we are working around a form based in purchase invoices form, this means a header & lines form. we are trying to capture the focus or the cursor position, because depending where the cursor is (header or lines) we have to perform different functions.
the scenario is the following: if the cursor is in a line of the subform, we have to perform one function called 'A', but if the cursor is in the tab (header), we have to perform another function, called 'B'.
the selection between 'A' or 'B' depends on the OnPush trigger placed in the main form.
we tryed to control in which form is the cursor using the OBJECTID function, but it didn't work as expected. so the question is how can we control the cursor position between forms in a header & lines form?
zanx.
0
Comments
-
You can try to use variable, that changes value depending in which control is active.
You can change the value using OnAcivate and/or OnDeactivate triggers in all controls.Regards,
Arturs Gedvillo
CTO0 -
whenever you goto Header to lines or vice versa the form activate trigger fires .
step1. Make a function in Header form.
Step2. Call this function to update the variable on header form
from activate trigger of subform.
and then on command button you will have the variable saying which form
is activated.
Note: variable is updated at the activate triggers of both forms.
Might this help u.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
- 323 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