cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Translate the entire conversation x

How to create Prefix or suffix drop down list to autogenerated number for WT Document

KR_1012184030
5-Regular Member

How to create Prefix or suffix drop down list to autogenerated number for WT Document

How to create Prefix or suffix drop down list to autogenerated number for WT Document

 

ACCEPTED SOLUTION

Accepted Solutions
Fadel
22-Sapphire III
(To:KR_1012184030)

exactly , just make sure to also look at https://www.ptc.com/en/support/article/CS31342 for adding the attribute to be checked by OIR and related constraints 

Fede

View solution in original post

10 REPLIES 10

Hi @KR_1012184030,

Thank you for posting your question on PTC Community.

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

  • Which platform or system are you using to create the WT Document?
  • Is the WT Document part of a workflow or form submission process?


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.

KR_1012184030
5-Regular Member
(To:vnamboodheri)

Thanks for reply..

 

Hello Community,

I have created a custom WTDocument subtype where the Document Number is auto-generated using an OIR.
Now I want to extend this so that the user can select a prefix from a drop-down list (e.g., three predefined values) when creating the document.

  • I already created a new soft type attribute (String, with enumerated values as a drop-down).

  • The attribute is visible in the create wizard.

  • My question is: How can I use the selected prefix attribute value in the OIR Number rule so that it becomes part of the auto-generated number?

  • Which platform or system are you using to create the WT Document?

I am creating the WT Document from the Product context in Windchill PDMLink using the standard web UI (browser).

 

  • Is the WT Document part of a workflow or form submission process?

No, there is no custom workflow or form submission involved. The WT Document follows the default Windchill workflow, and we create it directly from the standard Create Document wizard.

KR_1012184030
5-Regular Member
(To:vnamboodheri)

  • Which platform or system are you using to create the WT Document?

I am creating the WT Document from the Product context in Windchill PDMLink using the standard web UI (browser).

 

  • Is the WT Document part of a workflow or form submission process?

No, there is no custom workflow or form submission involved. The WT Document follows the default Windchill workflow, and we create it directly from the standard Create Document wizard.

 

Fadel
22-Sapphire III
(To:KR_1012184030)

you can create an IBA with drop down and then add the IBA as prefix 

Fede
KR_1012184030
5-Regular Member
(To:Fadel)

So I can follow PTC Article CS28029:

confirmation question

  <AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">
    <Attr id="IBA|IBAname1"/>
    <Arg>---</Arg>
    <Arg>{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:10:0}</Arg>
  </AttrValue>

 

Fadel
22-Sapphire III
(To:KR_1012184030)

exactly , just make sure to also look at https://www.ptc.com/en/support/article/CS31342 for adding the attribute to be checked by OIR and related constraints 

Fede

Hello @KR_1012184030


It looks like you have some responses from a PTC expert. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

KR_1012184030
5-Regular Member
(To:vnamboodheri)

Hello vnamboodheri,
My query has been resolved by following the steps you provided. Thank you for your support.

Hello @KR_1012184030,

 

Thank you for your prompt response!
It seems you were able to resolve the issue with the help of instructions shared by @Fadel. Hence, we have marked that response as the "Accepted solution".
Please let us know if any concerns.

 

Best Regards,

Vivek N

Community Moderation Team  

Announcements
Top Tags