Component
A Component represents a MapForce component.
To navigate the control, use the Application and Parent properties.
Component properties:
•HasIncomingConnections
•HasOutgoingConnections
•CanChangeInputInstanceFile
•CanChangeOutputInstanceFile
•ComponentName.
•ID
•IsParameterInputRequired
•IsParameterSequence
•Name
•Preview
•Schema
•SubType
•Type
Instance related properties:
•InputInstanceFile
•OutputInstanceFile
Datapoints:
•GetRootDatapoint
Execution:
•GenerateOutput
Properties
Name | Description |
---|---|
Read-only. Retrieves the application's top-level object. | |
Read-only. Indicates if the input instance file name can be changed.
Returns false if the component has a filename node and this node has a connection on its left (input) side, otherwise returns true. If the component does not have a filename node, false is returned. | |
Read-only. Indicates if the output instance file name can be changed.
Returns false if the component has a filename node and this node has a connection on its left (input) side, otherwise returns true. If the component does not have a filename node, false is returned. | |
Gets or sets the component's name. | |
Read-only. Indicates if the component has any incoming connections (on its left side) not including the filename node. An incoming connection on the filename node does not have any effect on the returned value. | |
Read-only. Indicates if the component has any outgoing connections (on its right side). | |
Read-only. Retrieves the component ID. | |
Gets or sets the component's input instance file. | |
Gets or sets, if the input parameter component requires an ingoing connection on the function call component of the user-defined function this input parameter component is in. This property works only for components, which are input parameter components. | |
Gets or sets, if the input or output parameter component supports sequences. This property works only for components, which are input or output parameter components. | |
Read-only. Gets the component's name. | |
Gets or sets the component's output instance file.
Trying to access the OutputInstanceFile of a component via the API does not return any data if the "File" connector of the component has been connected to another item in the mapping. | |
Read-only. The parent object according to the object model. | |
Gets or sets if the component is the current preview component.
This property works only for components, which are target components in the document's main mapping. Only one target component in the main mapping can be the preview component at any time.
When setting this property, it is only possible to set it to true. This then will also implicitly set the Preview property of all other components to false.
If there is just a single target component in the main mapping, it is also the preview component. | |
Read-only. Retrieves the component's schema file name. | |
Read-only. Retrieves the component's subtype. | |
Read-only. Retrieves the component's type. | |
Read-only. Retrieves the component's usage kind. |
Methods
Name | Description |
---|---|
Generates the output file(s) defined in the mapping for the current component only, using a MapForce internal mapping language. The name(s) of the output file(s) are defined as property of the current component which is the output item in the mapping for this generation process. | |
Gets a root datapoint on the left (input) or right (output) side of a component. To access children and descendants, the Datapoint object provides further methods. |