Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     (Solved) automatically tabbing to next field on maintain form

Read-Only Read-Only Topic
Go
Search
Notify
Tools
(Solved) automatically tabbing to next field on maintain form
 Login/Join
 
Member
posted
is there a function in maintain to automatically tab to the next field if the previous field is filled to its maximum?

i found javascript that describes a way to do this but i thought there might be something similar in maintain.

thanks, trish

webfocus 7.6.8 windows
maintain, mre, reportcaster,

This message has been edited. Last edited by: trishH,


webfocus 7.703, windows, pdf,excel,html
 
Posts: 6 | Registered: January 03, 2008Report This Post
Master
posted Hide Post
Hi Trish
Maintain does not have a default function to do this. However it is pretty easy to do with JavaScript.

Basically you can add this code to a JS file and embed it on your form. In this case it checks the input length of the data in EditBox1 and if it is greater than 2, autotabs to Editbox2. You will need to create a block of code for each editbox.

Mark

// Used in JavaScript Script library
// Limits input to 3 characters in Edit Boxes. After 3rd character is entered automatically set focus to
// next control
document.onkeyup = OnKeyUp;
function OnKeyUp()
{
if (document.Form1.EditBox1.value.length > 2))
{
var x = String(document.Form1.EditBox1.value).substr(0,3);
document.Form1.EditBox1.value = x;
document.Form1.EditBox2.focus();
}
}
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Virtuoso
posted Hide Post
Trish,
I do not know of thing like that to be standard present in maintain. As you found there is javascript that can do this, and you'll have to incorporate this bit of javascript yourself in the maintain.
This may be one of those new-feature-requests Mark is asking for - why not mention it to him in his thread ... who knows, it may become a included into the next release....


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
thanks Mark i will try that. i know how to embed the javascript. do i activate it as an event handler on "change"? for the field


webfocus 7.703, windows, pdf,excel,html
 
Posts: 6 | Registered: January 03, 2008Report This Post
Master
posted Hide Post
Trish
To do this, create a js file, I called mine AUTOTAB.JS and include it in the application path. Include the JS code in the example. Add that file to the project in the desktop.

Then, in the MDE, display the form that is going to use the function. Set your screen so you can also see the AUTOTAB.JS file from the desktop. Now drag the JS file onto an empty area of the form. You will be asked to embed or link the JS file. Embed it.

This function will now automatically be called every time a key is pressed but will only fire when the condition is met. You don't have to link it to a trigger.

One thing. I notice a small typo. There should be only one closing paren on the IF line, not two:

// Used in JavaScript Script library
// Limits input to 3 characters in Edit Boxes. After 3rd character is entered automatically set focus to
// next control
document.onkeyup = OnKeyUp;
function OnKeyUp()
{
if (document.Form1.EditBox1.value.length > 2)
{
var x = String(document.Form1.EditBox1.value).substr(0,3);
document.Form1.EditBox1.value = x;
document.Form1.EditBox2.focus();
}
}

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     (Solved) automatically tabbing to next field on maintain form

Copyright © 1996-2020 Information Builders