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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to get a document number that should contains product context name

kchaithanya
8-Gravel

How to get a document number that should contains product context name


​Hi All,

one of my customers requirement is as follows

If he wants to create a document in XYZ product context, then while creating it, in number field if he manually enters 3434  then after creation of document, it should appear like ABC\1234\XYZ3434.

Where ABC\123 is static name which will be same for all documents and XYZ is the product context.

Can anyone suggest me how to achieve this ?

Regards,

Krishna Chaithanya

ACCEPTED SOLUTION

Accepted Solutions

You can modify the OIR and use "containerName" reference to do this.

<!-- Added by IS4522 REQID 897DF -->              

<AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">

<Arg>AR</Arg>

<Arg>-</Arg>

<Attr id="containerName"/>

<Arg>-</Arg>

<Arg>{GEN:wt.enterprise.SequenceGenerator:TRCW_seq:5:0}</Arg>

</AttrValue>

              

Thank you

Binesh Kumar

View solution in original post

2 REPLIES 2

You can modify the OIR and use "containerName" reference to do this.

<!-- Added by IS4522 REQID 897DF -->              

<AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">

<Arg>AR</Arg>

<Arg>-</Arg>

<Attr id="containerName"/>

<Arg>-</Arg>

<Arg>{GEN:wt.enterprise.SequenceGenerator:TRCW_seq:5:0}</Arg>

</AttrValue>

              

Thank you

Binesh Kumar

Hi Binesh,

Its working fine. Now getting Product Container Name in number field with WTDOCUMENTID_Seq sequence .Thanks a lot for sharing it.

But, I'd like to know whether it's possible to enter manual number which should append to Product Container name mentioned above instead of auto numbering ?

Regards,

Krishna Chaithanya

Announcements

Top Tags