Content Type
Copy
The Content Type item links the Business Object ItemType to the CMF ItemType and is used to configure the custom grid and tree on the CMF items.
Navigate to Administration -> Content Modeling -> Content Types in the TOC. The following menu appears:
Figure 10.
Click Create New Content Type. The following screen appears:
Figure 11.
- Enter My PQD in the Name field.
Set the Linked ItemType to the CMF ItemType. In this instance, that is MyPQD.
It should now look like Figure 12.
Figure 12.
- Right-click the Elements tab on the Content Type tree and select Add Element Type.
Enter MyElement1 in the Name field for the Element Type.
It should now look like Figure 13.
Figure 13.
Content Type Elements
- Right-click the Element (MyElement1) in the tree and select Add Property Type
For this example, create the following Property:
- Data Type: Text
- Name: MyTextProp
- Click
to save the property. Create another Property:
- Data Type: String
- Name: MyStringProp
- Data Length: 32
Refer to Table 2 for a complete list of the properties of the Element Properties.
Table 1: Document Conventions
| Property | Description |
| DataType | DataType of the Element’s property |
| Name | Element’s name, a string, 30 |
| My Data Length | The maximum character length, only used for strings |
| Default Permission | A default Permission Item set for new Elements of this type, optional. |
Save Content Type.
It should look like Figure 14.
Figure 14.
- Right-click the MyElement1 item again and select Add Element Binding.
For this example, set the following properties:
- Referenced Type: MyProcessPlan (Business Object ItemType)
- Tracking Mode: Show Differences
- Resolution Mode: Current
- New Element Mode: Pick or Create
Refer to Table 3 for a complete list of the Element Binding items.
Table 2: Document Conventions
| Property | Description |
| Referenced Type | The Business Object ItemType that will be bound to the Element Type |
| Tracking Mode | Show Differences: Show differences between Elements of this type and the referenced Business Object Ignore Differences: Ignore differences between Elements of this type and the referenced Business Object Hard Show Differences: Overrides Content Type Life Cycle-specific tracking mode Hard Ignore Differences: Overrides Content Type Life Cycle-specific tracking mode |
| Property | Description |
| Resolution Mode | Identifies which generation of bound item to access to perform value comparison. Current: use the current version of the item As Saved: use bound_item_id as is, do not use the current version of the item Hard Current: Overrides the LifeCycle resolution mode Hard As Saved: Overrides the LifeCycle resolution mode |
| New Element Mode | Define how new elements may be added. Pick or Create Pick Only Create Only |
| Reference Is Required | User cannot create an unbounded Element. All Elements of this type must have a reference to a Business Object. |
| Structure Mapping Method (SMM) | The SMM returns the table data, allowing users to see conflicts between structures. The SMM is executed based on the Element Type. If a structure contains two different Element Types with SMM, both methods will run. This method is called when: An Element is added (New, Pick, Create) An Element is deleted A Reference is released On Pick/Replace of an Element |
| On Create Reference | Optional. This method is called when a user attempts to create a reference on a Business Object. If no method is set, the default implementation will execute. |
| On After Pick | A method called after a user picks some business object from the context menu. |
| On Apply Binding | Optional. The method will be called when the Element is picked. The method should link the selected Business Object to hierarchy of the main Business Object. This method also will be called when an Element exists but is not in the hierarchy of Business Object and the user wants to include the Element into the hierarchy of the Business Object. |
- Add a new item to the Property Bindings tab.
Configure the following properties:
- Referenced Property: name
- Document Element: MyStringProp
- Save the Content Type.
It should look like Figure 15.
Figure 15.
Currently, the Binding Types intersection is supported for the following Data Types:
- String
- Text
- Integer
- Date
- Boolean
- Image
Content Type Element Identity Inheritance
Content Type Elements inherit the managed_by_id, owned_by_id, and team_id properties from the parent Content Type instance item. The Element’s created_by_id and modified_by_id properties are not inherited.
For this sample case, this means that any MyElement1 items will be created with the managed_by_id, owned_by_id, and team_id values from the parent MyPQD item.
Content Type View
- Right-click the Views node in the Content Type tree and select Add View.
- Click OK to confirm a tabular view.
Enter a name for the Tabular View.
It should look like Figure 9.
Figure 16.
- Expand the Tabular View sub-tree
- Right-click the Columns node and select Add Column.
Enter the following values in the new Tabular View Column
- Mapped Property: MyStringProp
- Header Title: My String
- Initial Width: 100
Add another Column to the Columns node.
- Mapped Property: MyTextProp
- Header Title: My Text
- Initial Width: 200
It should look like Figure 17.
Figure 17.
- Right-click the Element Nodes node on the Tabular View sub-tree and select Add Element Type Configuration.
Enter the following properties for the Element Node:
- Label: MyElement1 Label
- Element Type: MyElement1
Icon: Choose an image
It should look like Figure 18.
Figure 18.
- Right-click the Additional Header Rows node and select Add Additional Header Row.
Add a new Group relationship with the following properties:
- Label: My Group Label
- Start: 1
End: 2
It should look like Figure 19.
Figure 19.
- Save, Unclaim, & Close the Content Type.