Template Attributes

The root object contained in a template corresponds to the table model.

This page discusses:

The table model can contain the following attributes to describe the tables:

Name Template Editor Column Description Mandatory
causalityRelationshipType Causality Relationship Type Defines the PLM object type to be used when creating a new causality relationship. By default, the type is FailureModesEffectsAnalysisCausalityRelationship. This type can be subtyped so the attribute takes the name of the subtyped type.
columns - Corresponds to an array of table columns. For more information, see columns Attribute.
defaultAnalysisTitle Default Analysis Title Defines the default name to be used to create tables.
groups Group By Defines the columns used to group by dataIndex. Each dataIndex is successively used to gather table columns in a tree display.

For example, with the following definition: "groups" : [ "processDirectEffectOccurrence", "effectsWithoutBarrierOccurrence" ], operation names, and then by requirement.

initializer Initialization Script Points to a module that creates and initializes causality relationships when you load a table that has no causality relationships yet.

For example: "initializer" : "module:MyModule/FailureModesInitializer"

For more information, see About Customization of Analyses with Scripts.

isTreeMerge Display as Structured Tree Lets you display, expand, and collapse the structure tree in the first column of the table analysis.
limitFailureModesEffectsAnalysisEditability Limit Analysis Editability Points to a module that applies rule limitations to the editability of the analysis.

For example: "limitFailureModesEffectsAnalysisEditability" : "module:MyModule/Formulas/LimiteEditabilityStatus"

For more information, see About Customization of Analyses with Scripts.

mode Mode Corresponds to the app mode: "FMEA" or "PRA".

Note: The "PRA" mode is used for Preliminary Risk Assessment, which means the analysis is performed in the context of an environment.

Note:

this value is "FMEA".

style CSS Stylesheet Refers to Cascading Style Sheets (CSS) that must be applied to the table.

For example: "module:css!MyModule/assets/css/MyModule.css"

To define CSS rules, you can write an associated module listing style rules for generated dataIndexes associated with dataIndexes used in a template.

Note: In the generated dataIndex, all the upper characters contained in a dataIndex are lowercased and all the spaces contained in a dataIndex are replaced by -.

For more information, see Module Example for style Attribute and RPNRiskPriorityNumber DataIndex and Module Example for style Attribute and Transient Formula ColumnName DataIndex.

title Title Corresponds to the name of the table.
validationRules Validation Rules

Corresponds to an array of modules that contain the validation rules.

For example: ["module:MyModule/Rules"]

xlsxReports Excel Reports Corresponds to an array of modules that lets you customize the Excel reports.

For example: ["module:MyModule/Report"]

Module Example for style Attribute and RPNRiskPriorityNumber DataIndex

.wux-layouts-datagridview-cell[data-rpnriskprioritynumber="9"], .wux-layouts-datagridview-cell[data-rpnriskprioritynumber="10"] {
      background-color: red;
}
.wux-layouts-datagridview-cell[data-rpnriskprioritynumber="8"], .wux-layouts-datagridview-cell[data-rpnriskprioritynumber="7"], .wux-layouts-datagridview-cell[data-rpnriskprioritynumber="6"], .wux-layouts-datagridview-cell[data-rpnriskprioritynumber="5"] {
      background-color: orange;
}
.wux-layouts-datagridview-cell[data-rpnriskprioritynumber="4"], .wux-layouts-datagridview-cell[data-rpnriskprioritynumber="3"], .wux-layouts-datagridview-cell[data-rpnriskprioritynumber="2"], td[data-rpnriskprioritynumber="1"] {
      background-color: yellow;
}

Module Example for style Attribute and Transient Formula ColumnName DataIndex

.wux-layouts-datagridview-cell[data-transient-formula-columnname] {
      background-color: blue;
}