Skip to main content

Entity Columns

Introduction​

An Entity Column is a reusable configuration that defines which columns are available in wizard steps that display entities in a table or tree.

Currently, Entity Columns are supported by the following wizard steps:

  • PLANNING_TREE
  • PRODUCTS_ASSIGNMENT

An Entity Column configuration allows administrators to:

  • Configure which columns are available.
  • Define which columns are displayed by default.
  • Prevent important columns from being hidden.
  • Configure editable metadata columns (PLANNING_TREE step only).

Entity Columns are grouped into two categories:

  • Static columns – Built-in properties of an entity.
  • Metadata columns – Content metadata associated with an entity.

Supported Columns

Static Columns​

Static columns represent built-in properties of an entity.

PLANNING_TREE step (Bucket)​

ColumnDescription
labelLabel of the item.
printTemplateIdPrint template of the item.
pageTemplateIdPage template of the item.
identifierIdentifier of the item.
bucketIdIdentifier of the planning bucket.
entityBucketLabelLabel of the planning bucket entity.
entityBucketIdIdentifier of the planning bucket entity.
createdOnCreation timestamp.
createdByUser who created the item.
updatedOnLast modification timestamp.
updatedByUser who last modified the item.

PRODUCTS_ASSIGNMENT step (Planning)​

ColumnDescription
assortmentNameAssortment name.
countryCountry of the context.
languageLanguage of the context.
wellWell of the context.
seqSequence number.
labelLabel of the entity.
idIdentifier of the tree node.
entityIdIdentifier of the underlying entity.
entityLabelLabel of the underlying entity.
pageTemplateIdPage template.
groupIdentifierGroup identifier.
templateTemplate name.
previewImagePreview image.
createdOnCreation timestamp.
createdByUser who created the entity.
updatedOnLast modification timestamp.
updatedByUser who last modified the entity.

Metadata Columns​

Metadata columns display content metadata.

The available metadata depends on the wizard step.

Wizard StepMetadata Source
PLANNING_TREEPlanning content metadata
PRODUCTS_ASSIGNMENTBucket content metadata

Each metadata column is identified by its entity ID.

In the PLANNING_TREE step a cmdKey can be configured to specify which metadata value should be displayed. If no cmdKey is configured, the first available content metadata value is used. In the PRODUCTS_ASSIGNMENT the first available content metadata value is used.

Viewing Options

Entity Columns support two viewing options.

OptionDescription
requiredThe column is always displayed and cannot be hidden by the user.
needAsDefaultThe column is displayed by default but the user may hide it later.

Editing Metadata

Editing is supported only for metadata columns in the PLANNING_TREE step.

The following options are available.

OptionDescription
editableEnables editing of the metadata value.
requiredRequires a value before the user can save changes.
needAsDefaultThe column is displayed by default but the user may hide it later.
cmdKeyDefines which metadata value is read and updated.
editableEntitiesRestricts editing to specific bucket entities of planned content. Semicolon-separated.

ContentMetadata is not always relevant for every planning item, and the entity model has no way to limit it to a specific bucket. Use editableEntities to make this column's ContentMetadata editable only for the planned buckets you list. If editableEntities is not configured, editing is allowed for all planning items.

The editor is automatically selected based on the configured content metadata type (for example, text field, checkbox, or combobox). For the detail guideline for configuring the content metadata type, see How-To Configure Content Metadata Editor

Configuration

Sample Configuration​

<entityColumns>
<entityColumn type="static" id="planning_static_columns">
<columns>
<column>
<key>label</key>
<required>true</required>
<needAsDefault>true</needAsDefault>
</column>
<column>
<key>identifier</key>
<required>false</required>
<needAsDefault>true</needAsDefault>
</column>
<column>
<key>createdOn</key>
<required>false</required>
<needAsDefault>false</needAsDefault>
</column>
<column>
<key>createdBy</key>
<required>false</required>
<needAsDefault>false</needAsDefault>
</column>
<column>
<key>updatedOn</key>
<required>false</required>
<needAsDefault>false</needAsDefault>
</column>
<column>
<key>updatedBy</key>
<required>false</required>
<needAsDefault>false</needAsDefault>
</column>
</columns>
</entityColumn>
<entityColumn type="metadata" id="planning_metadata_columns">
<columns>
<column>
<key>content_metadata_1</key>
<required>true</required>
<needAsDefault>true</needAsDefault>
<editable>true</editable>
<cmdKey>cover</cmdKey>
<editableEntities>bucket_entity_1;bucket_entity_2</editableEntities>
</column>
</columns>
</entityColumn>
</entityColumns>

Configuration Elements​

<entityColumns>​

Root element for all Entity Column configurations.

<entityColumn>​

Defines an individual Entity Column configuration.

Attributes​

AttributeRequiredDescription
idYesUnique identifier of the Entity Column configuration.
typeYesColumn type. Supported values: static, metadata.

<column>​

Defines a single column.

ElementRequiredDescription
keyYesColumn identifier. For metadata columns, this is the metadata entity ID.
requiredNoMakes the column mandatory and prevents users from hiding it. Default: false.
needAsDefaultNoDisplays the column by default. Default: false.
editableNoEnables editing of the metadata value. Only supported for metadata columns. Only apply for PLANNING_TREE step.
cmdKeyNoMetadata key used for reading and writing values. Required when editing is enabled. Only apply for PLANNING_TREE step.
editableEntitiesNoSemicolon-separated list of bucket entity IDs that are allowed to edit this metadata. If omitted, all planning items are editable. Only apply for PLANNING_TREE step.