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 All, I am using webfocus maintain.In one of my form,I have a combo box which has multiple values.What I want is when a user select some value in the drop down the background and font color of the combo box changes automatically as per the selection.For different values the background and font color would be different.How can I handle this situation in Webfocus maintain?Please suggest.
Thanks in advance.This message has been edited. Last edited by: Kerry,
Ok - This is PRETTY straight forward. I assume you want to do it with JavaScript as opposed to a Maintain Case? If you use JavaScript then the change is instantaneous. If you use a Maintain case you have to do a round trip to the server.
This code allows you to check for index or value. Here I am using Movie Titles from the Movies File and the name of my combobox is ComboBox1. You must loop through the entire box and change each row.
Let me know if you have any question.
Mark
function OnComboBox1_Change ( ) { var sel=Form1.ComboBox1.selectedIndex+1; var sel2=Form1.ComboBox1.options[Form1.ComboBox1.selectedIndex].text; for (i=0; i < document.Form1.ComboBox1.options.length; i++) { if (sel2 == "JAWS") { document.getElementById("ComboBox1").options[i].style.color = "red"; // foreground coolor document.getElementById("ComboBox1").options[i].style.backgroundColor = "yellow"; } // background color