getInstanceNames()

Returns an array of names of the component instances that are currently available on the browser.

Return = uniface.getInstanceNames();

Arguments

None

Return Values

Return—alphabetically sorted array of strings, each representing a component instance name

Exceptions

The following exceptions may be thrown:

Description

The getInstanceNames function returns a list of component instance names.

Each name can be used as an argument to uniface.getInstance. The returned array always contains at least the name of the main (outermost) instance.

var instNameArray = uniface.getInstanceNames();
for (var i = 0; i < instNameArray.length; i++) {
    doSomethingWithInstName(instNameArray[i]);
}

Related Topics