Default Active Control On Page

Jonathan2708
Member Posts: 552
Hi,
In classic forms there is the ActiveControlOnOpen property to specify which control has focus when the form opens. This has disappeared with the Page object, and there doesn't appear to be a CurrPage.Control.ACTIVATE method either. Does anybody know how to achieve the same thing with the Page object? I've tried setting the ID of the control to 1 but didn't have any effect. I think it must be possible because in standard pages such as the sales invoice the default control is 'No.'. In my page the action pane has the focus when the page is opened and you have to tab to get to the first control. It's a high volume data entry page so the keystrokes need to be reduced as much as possible.
Any help appreciated,
Jonathan
In classic forms there is the ActiveControlOnOpen property to specify which control has focus when the form opens. This has disappeared with the Page object, and there doesn't appear to be a CurrPage.Control.ACTIVATE method either. Does anybody know how to achieve the same thing with the Page object? I've tried setting the ID of the control to 1 but didn't have any effect. I think it must be possible because in standard pages such as the sales invoice the default control is 'No.'. In my page the action pane has the focus when the page is opened and you have to tab to get to the first control. It's a high volume data entry page so the keystrokes need to be reduced as much as possible.
Any help appreciated,
Jonathan
0
Comments
-
May be this is because No. is primary key? :-k
Did you show your primary key field on page?0 -
Jonathan2708 wrote:Hi,
In classic forms there is the ActiveControlOnOpen property to specify which control has focus when the form opens. This has disappeared with the Page object, and there doesn't appear to be a CurrPage.Control.ACTIVATE method either. Does anybody know how to achieve the same thing with the Page object? I've tried setting the ID of the control to 1 but didn't have any effect. I think it must be possible because in standard pages such as the sales invoice the default control is 'No.'. In my page the action pane has the focus when the page is opened and you have to tab to get to the first control. It's a high volume data entry page so the keystrokes need to be reduced as much as possible.
Any help appreciated,
Jonathan
Time ago I faced a similar issue:
viewtopic.php?f=32&t=48957&hilit=+focus~Rik~
It works as expected... More or Less...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
- 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