An unstructured port inherits the structure of a structured port, when a connection is added between them.
You can add additional attributes to a port structure.
After you add a component to the project, the color of the component ports indicates the status of the component:
Green – component is properly configured.
Yellow – port structure is defined and one or more mandatory properties are not defined.
Red – no port structure is defined and one or more mandatory properties are not defined.
You can change the color of the component ports to enhance support for users with color disabilities by selecting the Use enhanced color accessibility option in the File | Preference window. See “Customizing preferences”.
In the Design window, right-click the port, and select Edit Structure.
In the Structure Viewer window, make the required changes, and click Save.
For port structures that cannot be modified, the Edit Structure option is not available. You can only view the port structure using the View Structure option.
In the Design window, right-click the port, and select Edit Structure.
In the Structure Viewer window, select Actions | Add, or right-click the attribute and select Add.
Enter a name for the new attribute. The names for port attributes must start with an alphabet character and can contain only alphanumeric characters. It should not be a reserved JavaScript keyword. See “Variables”.
Select the Populate Attribute option to add the attribute to multiple port structures. The new attribute is added to all port structures participating in the selected connections and is automatically mapped. Click OK.
In the Design window, right-click the port, and select Edit Structure.
In the Structure Viewer window, select Actions | Remove, or right-click the attribute and select Remove.
In the Design window, right-click the port and select Edit Structure.
In the Structure Viewer window, change the attribute settings, and click Save.
Copying port structures from other ports
You can assign a port structure to a port based on any other available port in the current project:
In the Design window, select the port you want to assign a new structure to.
Right-click and select Assign Structure | Copy Structure.
You can copy the port structure from other ports of the same component. You can also copy any other port structure of the current project by selecting Copy Structure. If you select Copy Structure, a window displays an overview graph of the current project. You can select any of the available ports in the project.
Selecting a port that serves as the source for your new port structure
Click the port you want to use as a source. The attribute structure of the selected port is displayed in the lower area of the window.
Click Apply.