Skip to main content
4-Participant
November 22, 2023
Solved

Fomula of all user of the organization for an attribute.

  • November 22, 2023
  • 2 replies
  • 2029 views
Hi,
I am using Windchill PDMLink Release 11.1 and Datecode with CPS M020-CPS27

Is it possible to make a formula in Type and Attribute manager who listing all users in the system:

My case is I need to create an attribute (on the product type) with the list of all people of the organisation.

Thanks.
    Best answer by avillanueva

    Oh, you are looking for a drop down list to select a person. Well, the product does have an "owner" field which accepts a user and does list a drop down list of all users. Does that work for your purposes? Otherwise, why not just use the Product context team to define special roles for that area? It should be possible to link that as an alias attribute back to the Product but you can also report those role members on reports if you need to.

    2 replies

    avillanueva
    23-Emerald I
    23-Emerald I
    November 22, 2023

    Can you explain your use case again? Are you looking to make an alias attribute? This will have a huge number of values and I am not sure why you would want to do this? For what purpose would this be used for?

    tfritsch4-ParticipantAuthor
    4-Participant
    November 22, 2023

    Alias ou Calculated maybe more. I want to create an attribute on product type like project manager and I would like the list of people of the organization for populate with the good person (instead of free text with potential mistake) and in the future (in case of) If this attribute is use in a customization I can access  directly with a true login.

    Fadel
    23-Emerald I
    November 22, 2023

    This is not possible with alias attributes , reason is that there is no link between users and organization .

    there is only a reference but it goes from WTUser-> organization , in other words we can cerate an alias from wtuser  get attributes from organization but not the other way   

     

    your request is doable using (custom code) java algorithm for calculated attributes

    https://www.ptc.com/en/support/article/CS226468   

     

    Buiꓘa