Intersoft WebCombo Documentation
WebCombo Global Functions
Send comments on this topic.
Intersoft WebCombo > Client-side References > WebCombo Global Functions

Glossary Item Box

 WebCombo Global Functions

wcGetComboById Description
Gets the WebCombo instance given the ID of the combo.

Parameters
id ( string )
The ID of the WebCombo instance.

Return Value
object (WebCombo)

Samples
Gets the combo instance by ID, using ISGetObject() is preferred.

var combo = wcGetComboById("WebCombo1");
alert(combo.GetRows().length); 
wc_getValue Description
Gets the value of the WebCombo object given the ID of the combo.

Parameters
name ( string )
The ID of the WebCombo object.

Return Value
object

Samples
This sample alerts the value of the combo.

function getValue() {
    // will return a value if an item has been selected.
    alert( wc_getValue("WebCombo1"));

wc_setAdditionalFilters Description
Sets additional filters for a WebCombo instance.

Parameters
name ( string )
The ID of the WebCombo instance.
filters ( string )
The filter text to be applied.

Return Value
void

Samples
This sample shows how to filter the ContactName field to names that start with 'An'.

function setAdditionalFilter()
{
    wc_setAdditionalFilters("WebCombo1", "[ContactName] LIKE 'An%'");

wc_getText Description
Gets the displayed text of the WebCombo object given the ID of the combo.

Parameters
name ( string )
The ID of the WebCombo instance.

Return Value
string

Samples
This sample alerts the text of the combo.

function getText() {
    // will return the text if there is text displayed in the combo.
    alert( wc_getText("WebCombo1"));