Skip to main content
1-Visitor
October 24, 2025
Question

Webjectを利用して列挙属性の内部名から表示名を取得する方法

  • October 24, 2025
  • 1 reply
  • 167 views
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.16

Webject機能を使用して列挙属性の内部名から表示名を取得するような機能の作成を考えております。
アーティクルCS57350を参考にxmlを作成したのですが、これを呼び出し表示名を取得する箇所のコーディングが分からないです。
xmlを呼び出し、列挙の表示名を取得するようなソースコードのサンプルがございましたら共有いただきたいです。
以下参考アーティクルになります。
https://www.ptc.com/en/support/article/CS57350?art_lang=ja&as=0

1 reply

Community Manager
October 29, 2025

Hi @SM_10732654

Thank you for reaching out with your question.

To assist you better, could you please provide more details and context regarding your inquiry? Specifically:

1. Are you trying to retrieve the display name during object creation (e.g., in an OIR) or during a post-creation process?
2. Can you share the XML Webject code you've created so far?
3. Are you using Info*Engine tasks or workflow expressions to retrieve the display name?
4. Is the enumeration attribute a global or local IBA (Instance-Based Attribute)?
5. Do you need the display name in a specific locale or language?

Including screenshots can also be very helpful in understanding your process. This will enhance the likelihood of receiving valuable assistance from other Community members.

You might also find it useful to refer to the guide on how to ask a good question. Additionally, our community champion has shared tips on key points to include when asking a question on the PTC Community.

I hope this information is helpful.

Best Regards,
Vivek N
Community Moderation Team.