Skip to content

Commit aca05fe

Browse files
committed
Add BOM Component
Add Teamcenter BOM component
1 parent bf0ada6 commit aca05fe

11 files changed

Lines changed: 144 additions & 0 deletions
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: "Teamcenter BOM component"
3+
url: /partners/siemens/teamcenter-bom-component/
4+
weight: 20
5+
description: "Describes Teamcenter BOM component, which enables out of the box visualization of large Bill Of Material (BOM) data sets similar to what's available in Teamcenter's Active Workspace."
6+
---
7+
8+
## Introduction
9+
The Teamcenter BOM Widget brings **Teamcenter Bill of Materials (BOM)** capabilities into Mendix applications. Use it to view, edit, configure, and perform property updates on Teamcenter BOM structures directly in Mendix, reducing context switches and simplifying product structure tasks.
10+
11+
### Key Capabilities
12+
* Display Teamcenter BOMs: render complex product structures within Mendix pages.
13+
* Edit BOM properties: update BOM line properties from Mendix.
14+
* Apply Teamcenter configuration: use revision rules and effectivities (date/unit), variants.
15+
* Augment with Mendix data: inject custom **Client Columns** alongside Teamcenter properties.
16+
17+
## Prerequisites
18+
* Teamcenter Connector version 2512.0.0 or higher (the widget depends on its request handler).
19+
* Access to a Teamcenter environment 2512 or above with appropriate credentials/permissions. The widget utilizes new APIs introduced in Teamcenter 2512 and hence cannot be used with older versions of Teamcenter.
20+
* Teamcenter base platform and Structure Management modules installed.
21+
* Mendix 10.24.12 or higher.
22+
* A Mendix application with the TcConnector module added and configured.
23+
24+
## Persistence & Propagation
25+
Edits made through the widget invoke Teamcenter services via `TcConnector`. Changes to BOM line properties are propagated to Teamcenter when the operation is committed and accepted by the server. Ensure users have appropriate permissions, and consider requiring explicit save/commit actions in your UI.
26+
27+
## Notes & Best Practices
28+
* Keep titles and headers concise and technical; avoid marketing language in developer documentation.
29+
* Use unique `WidgetIDs` per page to avoid collisions.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: "Installation and configuration"
3+
url: /partners/siemens/bom-component-configuration/
4+
weight: 2
5+
description: "Configuration instructions and explanation for the usage of the Teamcenter BOM component."
6+
---
7+
8+
## Configuration
9+
### After-startup
10+
Add the TcConnector after-startup microflow to your project: Startup [TcConnector]. This microflow registers the required request handlers used by the **TcBOM widget**.
11+
12+
### General tab
13+
{{< figure src="/attachments/partners/siemens/teamcenter-bom-component/bom-widget-configuration-general.png">}}
14+
15+
Configure the following properties on the widget:
16+
* `Widget identifier`: Unique identifier for this instance of the widget. This is useful if you have multiple **TcBOM widgets** in your application that need to display different data. You can use this ID to discriminate and return the appropriate data.
17+
* `Product UID`: Teamcenter UID of the product (item or assembly) whose BOM will be displayed.
18+
* `Configuration settings`: Comma-separated options to control BOM loading and display (see below).
19+
* `Revision rule UID`: Teamcenter UID of the revision rule to apply when loading the BOM.
20+
21+
#### Configuration settings
22+
When leaving the configuration settings, by default, all configuration options are shown in the configuration header menu: variants, arrangements, partitions, unit effectivity, date effectivity configuration.
23+
24+
To hide any option, use the corresponding values as a comma-separated list in `Configuration settings`.
25+
Supported `Configuration settings` values:
26+
* `HideVariantConfiguration`: hides variant-based configuration.
27+
* `HideArrangementConfiguration`: hides arrangement-based configuration.
28+
* `HidePartitionConfiguration`: hides partition-based configuration.
29+
* `HideUnitEffectivityConfiguration`: hides unit effectivity configuration.
30+
* `HideDateEffectivityConfiguration`: hides date effectivity configuration.
31+
32+
In the example, below, the variant and date effectivity configurations will be hidden, while the other settings will be shown:
33+
`ConfigurationSettings` = `"HideVariantConfiguration,HideDateEffectivityConfiguration"`
34+
35+
### Selection tab
36+
37+
{{< figure src="/attachments/partners/siemens/teamcenter-bom-component/bom-widget-configuration-selection.png">}}
38+
39+
The widget supports cross-selection to coordinate with other page components. The cross-selection is one-way where selecting a BOM line in the BOM populates its properties on a configured entity.
40+
* `Selected UID`: UID of the ItemRevision that was last selected in the BOM.
41+
* `Selected Item ID`: ID of the ItemRevision that was last selected in the BOM.
42+
* `Selected Item Revision ID`: Revision ID of the ItemRevision that was last selected in the BOM.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: "Customization options"
3+
url: /partners/siemens/bom-component-customization/
4+
weight: 3
5+
description: "Describes the customization capabilities that allow developers to add in data from other external systems and how these can be combined into the Teamcenter BOM component."
6+
---
7+
8+
## Augmenting with Mendix Data
9+
Client Columns allow you to display custom data next to Teamcenter properties in the BOM view. The widget calls two microflows:
10+
* `CUSTOM_RetrieveClientColumnDefinitions`: Microflow to retrieve the client column definitions (client column name, width and column order)
11+
* `CUSTOM_RetrieveClientColumnData`: Microflow to retrieve the additional cell-data to display for the BOM lines and client columns.
12+
13+
As a developer you are free to implement this to your own needs. Additional data can be (but is not limited to) calculated values, third-party data or data from the database.
14+
15+
### CUSTOM_RetrieveClientColumnDefinitions
16+
17+
This microflow is invoked by the TcBOM widget to retrieve the definitions of the custom columns (ClientColumns) to display in the TcBOM widget.
18+
19+
{{< figure src="/attachments/partners/siemens/teamcenter-bom-component/custom-retrieveclientcolumndefinitions.png">}}
20+
21+
#### Input parameter
22+
* **Object:** `MendixColumnRoot`
23+
* **Attributes:**
24+
* `WidgetId` is a unique identifier for the specific TcBOM widget instance making the request. This is useful if you have multiple TcBOM widgets in your application that need to display different columns. You can use this ID to discriminate and return the appropriate data.
25+
26+
{{< figure src="/attachments/partners/siemens/teamcenter-bom-component/domain-model-mendixcolumnroot.png">}}
27+
28+
#### Return value
29+
* **Object:** `List of ClientColumn`
30+
* **Attributes:**
31+
* `Name`: Name of the Client Column. This name is used in the UI of the TcBOM widget as the column title
32+
* `ColumnOrder`: Order of the column in the widget, respectively. Teamcenter columns also have their own order, so this needs to be filled in conjunction with the Teamcenter columns. Teamcenter columns will take priority in case they have an identical order.
33+
34+
The first column should be object_string, which is already defined.
35+
All Mendix client columns must start with `columnOrder 2` and would appear before the Teamcenter columns.
36+
Mendix columns are sorted based on their `columnOrder`.
37+
Teamcenter columns appear after the client columns.
38+
The `columnOrder` for Teamcenter columns is defined by the Teamcenter administrator using the column configuration utilities in the **Teamcenter Admin Console**.
39+
40+
{{< figure src="/attachments/partners/siemens/teamcenter-bom-component/domain-model-clientcolumn.png">}}
41+
42+
43+
### CUSTOM_RetrieveClientColumnData
44+
45+
This microflow is invoked by the TcBOM widget to retrieve the data to be rendered in the BOM tree. It gathers cell-data for specific BOM lines and any custom columns (`ClientColumns`).
46+
47+
{{< figure src="/attachments/partners/siemens/teamcenter-bom-component/custom-retrieveclientcolumndata.png">}}
48+
49+
#### Input parameter:
50+
* **Object:** `MendixDataRoot`
51+
* **Attributes and associations:**
52+
* `WidgetId`: A unique identifier for the specific TcBOM widget instance making the request. This is useful if you have multiple TcBOM widgets in your application that need to display different data. You can use this ID to discriminate and return the appropriate data.
53+
* Associated `MendixDataColumnName` objects: This list specifies which custom columns the widget is configured to display. Each object has a `Name` attribute, representing the identifier of a custom column.
54+
* Associated `MendixDataBOMLine` objects: This list contains the specific BOM lines for which the widget requires data. Each object includes attributes such as `ItemId`, `RevisionId`, `RevisionUId`, and `BOMlineUid` to identify the BOM line and its ItemRevision.
55+
56+
{{< figure src="/attachments/partners/siemens/teamcenter-bom-component/domain-model-mendixdataroot-with-associations.png">}}
57+
58+
#### Return value:
59+
* **Object:** `List of ClientDataResponse`
60+
* **Attributes:**
61+
* `Value`: the value to display in a targeted cell in the BOM”
62+
* `ClientColumnName`: the name of the column of the targeted cell
63+
* `ItemRevisionUID`: the item revision UID of the corresponding BOM line of the targeted cell
64+
65+
{{< figure src="/attachments/partners/siemens/teamcenter-bom-component/domain-model-clientdataresponse.png">}}
66+
67+
### ClientColumn overview page
68+
For convenience, the `TcBOMModule` includes overview and edit pages to define and manage `ClientColumns`.
69+
70+
## Upgrade note
71+
Please be aware that any direct modifications made to this specific microflow within the `TcBOMModule` will be overwritten and lost during future upgrades of the `TcBOMModule`.
72+
73+
To ensure your custom data retrieval logic is preserved across upgrades, we highly recommend you to create two new microflows in your own module that fetches the column definition and cell-data and returns a list of `ClientColumn` objects and `ClientDataResponse` object respectively. These microflows can then be called in `CUSTOM_RetrieveClientColumnDefinitions` and `CUSTOM_RetrieveClientColumnData`.
47.6 KB
Loading
39.6 KB
Loading
135 KB
Loading
99.9 KB
Loading
4.3 KB
Loading
21.4 KB
Loading
13.3 KB
Loading

0 commit comments

Comments
 (0)