Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

Auto numbering documents using context as prefix

$
0
0

Hi,

 

We are trying to make an automatic numbering system for certain product folders. Ideally, we would like to have a prefix that reflects the product folder name and then a sequential number (auto generated).

 

Our current system involves us manually changing the prefix in the OIR. Is there any way to add the context as a prefix by editing the OIR file so that this is automatic for all products created? The current number generating script looks like:

 

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

                                   <Arg>PROJ-EMR:ZHD-</Arg>

        <Arg>{GEN:wt.enterprise.SequenceGenerator:WTDOCUMENTID_seq:6:0}</Arg>

</AttrValue>

Thanks,

Hannah


Viewing all articles
Browse latest Browse all 3592

Trending Articles