The forms editor is used to customize the connection parameters form for a component. This can only be applied to components in the Resources folder (except properties files).
To customize a form, open the component with the Forms Editor.
Context menu - Forms Editor choice
Note that when us choose a different editor for a file than the default, the CE will remember your choice, so that the next time we double click on the file it will open the file with the editor we used last. To open the component with the default editor, simply choose the appropriate editor in this menu (typically the top most editor).
If the component we open has no custom form, we will be prompted to populate the form with the default form:
Choosing Yes will create an initial form definition based on the default form for the component. In this case the FileSystem connector is uesed in the example, which results in the following screen:
Default Forms Editor screen for FileSystem Connector
The various elements we see in this form have the following function:
To localize a form create files with the locale identifier. So, for a French translation you would create a file called base-name_fr.properties.
Forms Editor, Events Script in LDAP Connector
Sections are used to arrange fields in the form. Sections are like folders the user can expand and collapse to display/hide its contents. When you define a section you specify whether the section is initially expanded and which fields are to be displayed in it. In the FileSystem connector example, there are two sections.
Forms Editor - General section
The first section is the General section. This section has no title, which means that there will be no section header the user can click to expand or collapse contents. This makes it a static section since the section cannot be collapsed or expanded. We can add, remove and reorder the fields in the list of fields using the toolbar at the bottom of the panel:
The second section is the Advanced section:
Forms Editor - Advanced section
This section does have a title, but it is not initially expanded. This will cause the form to display the form with this section title collapsed and the fields within are hidden until the user expands the section.
Forms Editor - field definitions
In this panel we see the definition for the connector parameter “filePath”. In the order of appearance:
Field | Description |
---|---|
Label | The label that the form will show |
ToolTip | The tooltip displayed when the user mouses over the input field |
Field Type | The type of input field:
|
Mode Selection | This optional field can specify component modes where the field is excluded or included. Specify modes separated by a comma with a minus sign to exclude.
“Iterator” - only show in Iterator mode |
The three tabs at the bottom let you specify buttons, drop down values for Drop-down lists and the Java class name for the custom component.
Parent topic: The User Interface