Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
364
WebCombo.setSelectedIndex() not working
posted

Hi,

 

I am trying to trigger a WebCombo box to change it's selected index when the user clicks a tab on the same page.  I have it working the other direction: when the user changes the WebCombo value, the WebTab changes it's selected tab.  See my javascript code below:

function tabPages_InitializeTabs(oWebTab){

oWebTab.setSelectedIndex(0);

}

function cboPages_AfterSelectChange(webComboId){

var oCombo=igcmbo_getComboById(webComboId);

var idx = oCombo.getSelectedIndex();

var ultraTab = igtab_getTabById("tabPages");

ultraTab.setSelectedIndex(idx);

oCombo.focus();

}

function tabPages_AfterSelectedTabChange(oWebTab, oTab, oEvent){

var idx = oTab.getIndex();

var oCombo=igcmbo_getComboById("cboPages");

oCombo.focus();

oCombo.setSelectedIndex(idx);

}

function cboPages_InitializeCombo(webComboId){

var oCombo=igcmbo_getComboById(webComboId);

oCombo.focus();

oCombo.setSelectedIndex(0);

}

The WebCombo initialize doesn't set the index either.

Any help would be appreciated.