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.
I would appreciate any help. I have an html launch page with a panel that has 4 combo boxes, a search button and reset button. I have set the tab order to be 1-4 being the combo boxes(first is LastNameCB) and the search button being 6 and reset button is 7. I have tried putting LastNameCB.focus() in the window_onload function and also checked out both links below and tried those examples as well. No matter what I do, the search button is the focus on load. Help please!
I'm using WB 7.7 and Dev StudioThis message has been edited. Last edited by: Kerry,
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
Add your code after the UpdateData() function. This works for me.
Juicy bits (Bolding is a sanity check in my test):
<SCRIPT id=clientEventHandlersJS type=text/javascript>
//Begin function window_onload
function window_onload() {
UpdateData();
document.getElementById('combobox1').focus();
document.getElementById('combobox1').style.fontWeight="900";
// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload
</SCRIPT>
Thank you for the code. It was helpful to look through. However, for some reason I still can not get the combobox to have focus, it did the font weight line but not the focus. I have autocomplete code as well, at first I thought maybe that was causing a problem. Then I put the .focus() code into another launch page that didn't have the autocomplete code and it still does not give focus to the combobox. I don't get it.
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
I also tried deleting the search button and still does not give focus to the combobox.
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
I guess it helps to read the help files......this worked like a charm for my focus issue.
FROM HELP FILES:
If you want JavaScript to run after a page loads completely, but before any reports are executed, you need to create a function called onInitialUpdate() and put your code in that function. Your code should be added inline in the HTM file after the line: //End function window_onload
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML