Skip to main content
15-Moonstone
February 27, 2018
Question

Alias Attribute Mapping for a WTPart to Display WTDocument Number with Reference Link

  • February 27, 2018
  • 1 reply
  • 3463 views

Hello,
I've been searching around trying to figure out the syntax for alias attribute on a WTPart.  It should display the Number of the WTDocument that is associated using "References Documents" association.

 

I have seen a similar article here:  https://www.ptc.com/en/support/article?n=CS106471.  However, this is the opposite direction.

 

Specifically, I would like this to only pertain to my soft type WTDocument ... not all of the WTDocuments that are associated with Reference link.  Screenshot shown below to help describe the situation.

 

desired resultdesired result

1 reply

15-Moonstone
February 27, 2018

I dont think that is possible because the link is on WTDocumentMaster ( CS131357 )

 

referencedBy@wt.part.WTPartReferenceLink~references^wt.doc.WTDocumentMaster~number

But you can try to replace by your sub type

BenPerry15-MoonstoneAuthor
15-Moonstone
March 6, 2018

Correct.  The mapping doesn't work to restrict down to particular soft type of WTDocument.

referencedBy@wt.part.WTPartReferenceLink~references^wt.doc.WTDocumentMaster~number

 

Does anyone know if it is possible to create alias attribute on WTPart that displays Number for particular soft type of WTDocument associated as "reference" ... not "described by"?

 

Do I possibly need to use a configurable link to achieve this requirement?  Or will that still not work?

OliverDroop
15-Moonstone
November 30, 2023

Since the WTPartReferenceLink is a WTDocument Master relation it is not possible to configure this like this.
But you could either introduce a calculated attribute or as you already proposed you can use a dedicated configurable link to be navigated.