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.
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, 2003
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, 2007
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, 2003