getComponent

getComponent takes a Component Name and returns the matching Component Object.


Usage:


getComponent(FQN)


Where:


FQN: Is the qualified name of the Component to be retrieved.


Returns:


Component Object


A qualified name can include as many Domain names as is necessary to uniquely identify the Component. If the Component name is unique within the Domains to which the invoking user has access, then no qualification is necessary. Only if there is more than one Component with the same name (in different accessible domains) will it be necessary to qualify the Component name with the domain in which it is located.


Examples:


1) Retrieve a Component.


set compobject = getComponent("WarFile1");


2) Retrieve a Component specifying the enclosing domain:


set compobject = getComponent("Project1.WarFile1");



See Also:

getApplication(), getcredential(), getEnvironment(), getserver(), getuser(), getusergroup()