getComponent
Syntax | getComponent(projectKey, componentName) | Package | adm |
Alias | admGetProjectComponent(projectKey, componentName) //deprecated | Pkg Usage | getComponent(projectKey, componentName) |
Syntax | getComponent(componentId) | Package | adm |
Alias |
| Pkg Usage | getComponent(componentId) |
Description
Returns a JComponent for either a component id or a specified project and component name.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
projectKey | String | No | Project key. |
componentName | String | No | Name of the component. |
componentId | Integer | No | Component id. |
Return Type
Example 1
getComponent("TEST", "sil");Returns a JComponent structure for the "sil" component in the "TEST" project.
Example 2
getComponent(10000); Returns a JComponent structure for the 10000 component ID.