FileSelectorTemplate
Copy
VC has the capability to associate one or more FileTypes with an item to allow an end user to view files using the appropriate file viewer.
This is a template for creating FileSelector relationships when Feed is created based on a FeedTemplate.
Figure 10.
In the case of the Document ItemType as shown here, a single FileSelectorTemplate with default properties is already added in the Relationship grid:
- Filter […]
- Reference […]
- Tooltip Template
Figure 11.
Use the following procedure to make changes to the FileSelectorTemplate:
- Click
in the FeedTemplate page. - Click
in the FileSelectorTemplate Relationship Toolbar to add a new FileSelectorTemplate in the relationship grid. - Right-click the FileSelectorTemplate in the Relationship grid and select FileSelectorTemplate --> Open in the context menu. This opens the FileSelectorTemplate Item tear-off window.
- Modify the properties of the FileSelectorTemplate as required. Refer to Table 5 for the properties of the FileSelectorTemplate along with its description.
Table 3: FileSelectorTemplate properties
| Property | Description |
| Filter | (text) This allows selecting required files based on their FileType(s) and filter out files of undesired types. It is indicated by “|” separated by a list of FileType Ids. If the property is not set, then Files of any types from which there is appropriate Viewer built-in can be selected. Lists of FileTypes already assigned to standard Innovator ItemTypes are shown in Appendix A. |
| Reference | (text) This property is used to select the files selected by appropriate FeedTemplate. The required files are selected from its own item files that belong to its relationships. The syntax of the reference is: reference = property | relationshipPath(property) property = Name of property of type Item relationshipPath = relationshipName | relationshipName/relationshipPath relationshipName = Name of a Relationship Type Following are few examples of valid References: p1R1(p1)R1/R2/R3/R4(p1) |
| Tooltip Template | (string:128) It is a template for the tooltip. This tooltip is displayed when the user points the mouse over the appropriate file aggregated on sidebar. The tooltip template consists of a parameterized syntax with attribute or property name in it. For instance: File ${File:filename} from ${ItemType:label} ${Item:keyed_name} – This template is used to display the keyed name of the “markup” holder item. |