In this article, you will find components which display information on all exported objects in a list or table format.

Attributes

Adds a section with all attribute values of an object to the template. Each attribute will be displayed in a separate section, separated by attribute names.

Example:

<<{ "type": "attributes", "attributeTypeNameStyle": "Custom Attribute Style", "maxContentWidth": 110 }>>
PropertyDescriptionValuesMandatory
typeattributesstringYes
attributeTypeNameStyleText formatting style of the attribute name.stringYes
maxContentWidthMax width (in mm) of pictures used in the attribute value. The default value is 125.integerNo

External Attachments

Exports all attachments of the selected objects in their own folder.

Example:

<<{ "type": "externalAttachments", "foldersByObject": false }>>
<<{ "type": "externalAttachments", "singleFolderName": "Attachments" }>>
PropertyDescriptionValuesMandatory
typeexternalAttachmentsstringYes
foldersByObjectDetermines whether attachments are categorized in folders according to the object name.booleanYes
singleFolderNameName of the folder when all attachments are in a single folder. Used for "foldersByObject": false.stringYes (when foldersByObject is false)

Multi Attachments

Adds a list with attachments of all exported objects to the template. The attachments are separated by object names.

Example:

<<{ "type": "multiAttachments", "objectNameStyle": "Custom Attachment Heading" }>>
PropertyDescriptionValuesMandatory
typemultiAttachmentsstringYes
objectNameStyleText formatting style of the object names, which serve as attachment separators.stringYes

Relations

Adds a table to the template listing objects related to the selected object. The table also includes information on the target object’s properties.

Example:

<<{ "type": "relations", "relationType": "core_isMentioning", "columns": [ {"value": "objectName", "isBold": true, "header": "Object Name" }, {"value": "definition", "header": "Definition" } ] }>>
<<{ "type": "relations", "relationType": "core_isMentioning", "columns": [ {"value": "objectName", "isBold": true, "header": "Object Name" } ], "sortByAlphabet": true, "distinct": true, "headerStyle": "Custom Table Header 1", "objectTypes": [ "data_source" ] }>>
<<{ "type": "relations", "relationType": "core_isMentioning", "width": "12", "align": "center", "columns": [ {"value": "objectName", "header": "Object Name", "width": "60%" }, {"value": "definition", "header": "Definition" } ] }>>
PropertyDescriptionValuesMandatory
typerelationsstringYes
relationTypeKey of the relation type used to filter related objects. The key must be in the following format: packageKey_relationTypeKey.stringYes
columnsArray of columns in the table. For column configuration, see the table below.arrayYes
alignHorizontal placement of the table when it is narrower than the text area. Supported values are left, center, and right. When omitted, Word’s default placement applies.stringNo
distinctDetermines whether target objects can be added more times to the table.booleanNo
objectTypesKeys of the object types that can be displayed. Used as an additional object filter. The keys must be in the following format: packageKey_objectTypeKey.stringNo
headerStyleText formatting style of the table’s header column.stringNo
reverseSortDetermines whether the table is sorted in an ascending or descending order.booleanNo
showEmptyTableHeaderDetermines if an empty table can be shown.booleanNo
sortByAlphabetDetermines whether the table is sorted alphabetically.booleanNo
widthWidth of the generated table. When omitted, the table fills the text area (page width minus margins). See Width syntax.stringNo

When the component sits directly under a table in the template, an empty paragraph separates the two tables so that Word does not merge them and the generated table keeps its own width.

Width syntax

Widths are in centimetres by default, so "width": "17.5" means 17.5 cm. A decimal comma works as well ("17,5"). Centimetres are the default because that is the unit Word shows in Table Properties > Preferred width in metric locales. To use another unit, add one of these suffixes: cm, mm, pt, in, or %. A percentage is relative to the text area for the table, and relative to the table for a column.

This syntax applies to both the table’s own width and each column’s width.

Column properties

PropertyDescriptionValuesMandatory
headerText used as column name.stringYes
valueThe attribute or property of the target object in the relation. See supported values.stringYes
isBoldDetermines if the column name is in bold.booleanNo
widthWidth of the column. Columns without a width share the space the sized columns leave. See Width syntax.stringNo

Supported values

Supported values are:

  • ObjectName: Name of the target object in the relation.
  • Key of the attribute of the target object in the relation. The key must be in the following format: packageKey_attributeTypeKey.

Text

Adds text to the template, with the option to display it conditionally based on specified criteria.

Example:

<<{ "type": "text", "Text": "Nicola Tesla", "style": "Custom text 1", "conditions": [ { "type": "attribute", "value": "project_id",  "operator": "not null" } ]  }>>
PropertyDescriptionValuesMandatory
typetextstringYes
textString of text to be displayed.stringYes
styleFormatting style of the text.stringYes
conditionsText display conditions. See mandatory properties.stringNo

Conditions mandatory properties

PropertyDescriptionValuesMandatory
typeType of the attribute serving as the condition for this component.stringYes
valueValue of the attributestringYes
operatorExpression determining when the attribute is displayed.For example, the not null operator defines that the text will be displayed only when the specified attribute is not empty.stringYes

User relations

Adds a section with the object’s user relations to the template.

Example:

<<{ "type": "userRelations", "userRelationTypes": [ "core_data_steward", "core_bussiness_owner" ], "property": "LastName" }>>
PropertyDescriptionValuesMandatory
typeuserRelations Multiple users per user relation type will be separated by semicolons (;).stringYes
userRelationTypesKeys of the displayed user relation types. The keys must be in the following format: packageKey_userRelationTypeKey.stringYes
propertyType of the displayed user property. You can display one property type per component.stringNo

User relations property supported values

Supported types of the user relation property are:

  • Name: Name of the user. Default when no property is specified.
  • FirstName: First name of the user.
  • LastName: Last name of the user.
  • Description: Description of the user., Login: User login.
  • Email: Email of the user.
  • Phone: Phone number of the user.