columns Attribute

The columns attribute enables you to describe the columns contained in the table.

A column has the following attributes:

Name Template Editor Column Description Mandatory
alternateTextAttribute Alternate Text Attribute Gives the name of the attribute used to store a string value, if a more formal object (requirement, task, …) is not defined yet.
authorizedValues Autorized Values Corresponds to an array of values that are valid for a cell in this column.

For example: "authorizedValues" : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

categories Categories Corresponds to an array of category names

For example: "categories": ["cat1", "cat2"]

dataAttributes Data Attributes Corresponds to a list of PLM object types and their attributes, to be exposed in tables.

Attributes must be exposed as data-<attributeName> and are assigned as data-<attributeName>=<attributeValue>.

For example, if a column contains the following code: "dataAttributes": {"Requirement": ["Title", "project"]}, to add colors to:

  • The background of a requirement tile in orange, the CSS file must contain:
    div.multi-tile-view[data-project="3DS Private Collab Space"] {
      background-color: orange;
    }
  • The background of cells in navy blue, the CSS file must contain:
    .wux-layouts-datagridview-cell[data-project="3DS Private Collab Space"] {
      background-color: navy blue;
    }

dataIndex Nature Is selected from a list of predefined values or an attribute. For more information, see dataIndex Attribute and Editors.
dropDown Has Dropdown Corresponds to "true" or "false". If the value is "true", a list shows different values. You can click the cell and edit it.
Note:

the value is "true".

editorBehaviorScript Editor Behavior Script Refers to a module that enables to customize the behavior of the editor.

For example, the script can define the initialization of the possible values for the current column defined in the template.

formula Formula Refers to a module that computes a value from the causality relationship.

For example, the risk priority number corresponds to a computed attribute, its formula is the result of the product of severity, occurrence, and detection ranks.

The formula definition must comply with the following pattern:"formula" : "module:MyModule/PriorityFormula"

The refresh mode of computed values can be defined using the formulaRefreshMode attribute or corresponds to the "transient" mode if this attribute is not defined.

formulaRefreshMode Formula Refresh Mode If a formula is defined to compute a value from a causality relationship, the formulaRefreshMode attribute lets you define how the refresh of computed values is performed.

formulaRefreshMode can take the following values:

Value Description
"transient" The formula is computed and values are displayed at each modification of data, but the values are not persistent.
"auto" The formula is computed and values are displayed at each modification of data. The values are persistent.
"manual" The formula is computed on demand and values are displayed. The values are persistent.
"none" The formula is only computed until a value is found.
Note: Persistent values are kept in an existing attribute defined in the dataIndex attribute. When the value of formulaRefreshMode is "transient", the dataIndex must not be an attribute.

hints Hints Refers to a JSON file that presents the descriptions and helps you complete cells for authorized values.
Important: The hints definition must comply with the following pattern:
"hints": "i18n!MyCustomization/MyDescriptionFile"
  • MyCustomization is the name of the document that contains the all JSON files.
  • MyDescriptionFile is the name the refered JSON file.

    Different translation files of description can be associated with the MyDescriptionFile name. For that purpose, in the document, create some MyDescriptionFile_language.json files, where language is the current language of the widget, such as (en,fr,de,ja,zh), the corresponding language is used. Otherwise the default language is English.

When you hover over an element, the definition can contain the following components:

Component Name Mandatory
Title The Title is the text label associated with the element. It describes the aim of the element. Mandatory
ShortHelp The ShortHelp provides a short description of the element. Mandatory
LongHelp The LongHelp is a longer description that provides more information about the element. LongHelp appears after a delay if you maintain the pointer over an element. Optional

For each authorized value, a definition is available in the JSON file, such as follows:

authorizedValue:{
   "title":"titleDescription",
   "shortHelp":"shortHelpDescription"
}

To define the descriptions of authorized values, you can write an associated JSON file. For more information, see Example for hints Attribute.

isCharacterizable Characterization Options Corresponds to "true" or "false". If the value is "true", the column can be characterizable.
Note:

the value is "false".

isCharacterizationRichContentEditable Characterization Options If the value of isCharacterizationRichContentEditable is "true", the column can contain rich text characterizations.
Note: This attribute is valid only if the column is characterizable that is isCharacterizable is "true".
Note:

the value is "false".

isMerge Merge Corresponds to "true" or "false". If the value is "true", the elements are displayed in one cell if they are identical.
Note:

the value is "false".

isRichContentEditable Has Rich Text Corresponds to "true" or "false". If the value is "true", the column can contain rich text that is stored in the attribute defined by "alternateTextAttribute".

For example, a column can point to requirement objects, but also contain less formal content that does not satisfy the criteria of a formal requirement.

Note:

the value is "false".

multivaluedGroup Logical Group Corresponds to the name of a logical group. This attribute is added to each column that defines a logical group. This attribute can only be added to columns that can contain object references.

For example, "multivaluedGroup": "Detection".

Note: Logical groups are mutually exclusive, that is a column can only have one logical group name associated.

A specific CSS can be associated with a logical group. The data-logical-group is available when a group is created. For more information about the usage, see the dataAttributes attribute.

For more information, see Managing Logical Groups.

qualifiers -

Corresponds to an array of additional information. For more information, see qualifiers Attribute.

rollupFormula Rollup Formula Refers to a module that computes a value from the structure.

If the value of isTreeMerge is "true", this column can contain a rollup formula definition.

The rollupFormula definition must comply with the following pattern:"rollupFormula" : "module:MyModule/Formula"

superHeader Group Some columns can be gathered with a top header above their own headers.

The superHeader definition must comply with the following pattern for each column with the same top header title.

For example, "superHeader": "Failure Condition".

targetDataIndex Refers to If dataIndex is the name of an attribute, targetDataIndex is the dataIndex of a column containing the model, which defines the attribute.

For example, if causeFailureMode dataIndex points to a failure mode, {"dataIndex": "V_Percentage" "targetDataIndex": "causeFailureMode" …} defines a column, which displays the attribute V_Percentage of the failure mode pointing to the causeFailureMode column.

Notes:
  • Attributes of a multivalued cell cannot be displayed in a column, for example, a cell containing N requirements as prevention control.
  • If the dataIndex is requirement, a targetDataIndex must be defined.
, except for the requirement dataIndex
text Title Corresponds to the title of the column header.
types Authorized Types

Corresponds to an array of any PLM object types. Relevant objects can be dropped into a cell of this column.

For example:"types" : ["Product", "Task"]
width Width

Expresses the width of the column.

For example: "width" : "200px"

Example for hints Attribute

{
   "1":{
      "title":"The amount of harm...",
      "shortHelp":"Less than 1 per million"
   },
   "2":{
      "title":"The amount of harm...",
      "shortHelp":"Between 1 per million and 2 per million"
   }
}