Tabbing through subfile option field with wrapping
-
- Profound User
- Posts: 50
- Joined: Fri May 24, 2019 6:26 am
- First Name: Ben
- Last Name: Foster
- Company Name: Manhattan Assurance Company
- Contact:
Tabbing through subfile option field with wrapping
I have an application with the requirement to keep the users off the mouse as much as possible. The app is a high volume data entry program and tabbing is important. The application has a subfile with a single field that is input capable - the subfile option field. Assigning the tab index of 1 to this field propagates down through the rest of the subfile records as expected. When the tabbing gets out of the subfile it lands on the first button with tab index of 2 and then into the next and final button with tab index of 3. After that I need to get the tabbing to "wrap around" back into the subfile option field on the first record of the subfile. As it is now, the tabbing gets out of the form and into the browser. To solve this, I think in terms of getting the subfile record format to obtain the grid to set focus on the subfile option field but apparently this isn't possible. Any ideas?
-
- Profound User
- Posts: 24
- Joined: Fri Apr 13, 2018 4:06 am
- First Name: David
- Last Name: Baltromei
- Company Name: H. Gautzsch Firmengruppe
- Country: Germany
- Contact:
Re: Tabbing through subfile option field with wrapping
Hi,
you can put some little javascript to the onblur event of your button with the last tab index.
document.getElementById("IDofTextboxinSubfile" + ".1").focus();
Hope this helps!
David
you can put some little javascript to the onblur event of your button with the last tab index.
document.getElementById("IDofTextboxinSubfile" + ".1").focus();
Hope this helps!
David
-
- Profound User
- Posts: 50
- Joined: Fri May 24, 2019 6:26 am
- First Name: Ben
- Last Name: Foster
- Company Name: Manhattan Assurance Company
- Contact:
Re: Tabbing through subfile option field with wrapping
Clever. That worked. Thanks!
-
- New User
- Posts: 11
- Joined: Thu Oct 20, 2016 5:56 am
- First Name: silvano
- Last Name: pacifici
- Company Name: VIBA SPA
- State / Province: Outside Canada/USA
- Country: Italy
- Contact:
Re: Tabbing through subfile option field with wrapping
Hi, does it still run if the next field is a combo box?DavidBal wrote:Hi,
you can put some little javascript to the onblur event of your button with the last tab index.
document.getElementById("IDofTextboxinSubfile" + ".1").focus();
Hope this helps!
David
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Tabbing through subfile option field with wrapping
You might do something like the following (off the top of my head, untested):
Code: Select all
var box = getObj("IDofTextboxinSubfile" + ".1");
if (box && box.comboBoxWidget) {
box = box.firstChild;
}
box.focus();
Who is online
Users browsing this forum: No registered users and 3 guests