Skip to main content
14-Alexandrite
Jul 25, 2018 9:19 AM UTC
Question

Mapping for creator attribute

Hi.

For table "My Tasks" i need to show some attribute (postalAddress) of PromotionNotice creator.

So i added alias attribute for wt.workflow.work.WorkItem and tried to set the mapping as follows:

primaryBusinessObject^wt.maturity.PromotionNotice~creator^wt.org.WTPrincipal~postalAddress

But Windchill says this mapping invalid. I tried some other options but without any success.

Is there any posibility to make such mapping:

WorkItem -> PromotionNotice -> creator -> postalAddress

?

 

Thanks.

 

3 replies

16-Pearl
Aug 1, 2018 9:57 AM UTC

I have taken many tests and postalAddress attribute can't work because  postalAddress  is not stored in WTUser database table which is stored in Windchill Directory Service ldap. If we use like "fullname" which can work. So suggest to give up it.

 

I write mapping field as this : primaryBusinessObject^wt.maturity.PromotionNotice~creatorRef^wt.org.WTUser~fullname

1.png

 

Translate
14-Alexandrite
Aug 2, 2018 12:52 PM UTC

Mapping

primaryBusinessObject^wt.maturity.PromotionNotice~creatorRef^wt.org.WTUser~postalAddress

looks like one i need.

But "postalAddress" data type is HTMLText. Since i can't create attribute of this type, the problem is unsolvable.

Translate
16-Pearl
Aug 6, 2018 9:50 AM UTC

I know you want to get postalAddress info. What I mean is that we can't mapping the attribute which is not stored in WTUser table. It is not related with HTML text.  postalAddress is stored in ldap not in WTUser table so mapping can't get it. 

Translate