IMAN_specification Reference Set Empty When Using Teamcenter Extension (ItemRevision Mapping)

0
Hi, I’m integrating Mendix with Teamcenter using the Teamcenter Extension (Get Item Revision).The ItemRevision mapping and domain model were generated automatically and include our custom specification object (M4_Proc_SpecificRevision) via the IMAN_specification reference set.   Everything compiles fine and I can retrieve Item Revisions successfully.   However, the IMAN_specification reference set is always empty at runtime, even when testing with a known Item Revision that definitely has multiple Specifications attached in Teamcenter.   What I have done: Used Get Item Revision in the Teamcenter Extension to generate the import mapping and domain model. In the mapping UI, I selected our specification object under IMAN_specification. The extension created this association in the domain model: TCRevision.ItemRevision ↔ TCRevision.M4_Proc_SpecificRevision (reference set) The ItemRevision results page contains: Outer ListView → data source: microflow returning List of ItemRevision Inner ListView → data source: Association → IMAN_specification → M4_Proc_SpecificRevision I can see and select the association and the attributes in the page editor, but nothing is displayed at runtime. Debugging confirms: TCRevision.IMAN_specification appears as a Reference Set property, but it is always empty, even for Item Revisions with multiple real specifications. My question: How do I correctly retrieve IMAN_specification objects using the Teamcenter Extension so that they are populated in Mendix?   Do I need an additional integration step (e.g., Get Datasets, GetProperties, custom mapping), or does the Get Item Revision action not automatically fetch relationship objects?         Thanks in advance!
asked
2 answers
0

Hi Tomasz,

 

I am a bit confused by your second screenshot; in your first screenshot I can clearly see attributes in TcConnector.ItemRevision, however in the second screenshot there don't seem to be any attributes in your domain model. The entity TcConnector.ModelObject also shows more attributes in the first screenshot than in the second.

 

Did you modify the entities manually? Or is it an older screenshot (from before the attributes were added)?

 

You also mentioned that the reference created was TCRevision.ItemRevision ↔ TCRevision.M4_Proc_SpecificRevision  however in your screenshot it seems we're looking at a different set. I'm wondering if you're looking at the right entities.

answered
0

Hi Robbert, the attributes in the first images are the default attributes selected by the TC Extension, and only the additional custom attributes are shown in the domain model. However, I can access and display all of them.

Just an update: I’ve found the issue. I was originally mapping to a master ItemRevision that had no visibility of, or relation to, the Specifications attached to our custom ItemRevision (which inherits from the master). As a result, I could display the attributes of the revision but not the associated Specifications that were linked to the custom ItemRevision. Hopefully that makes sense.

answered