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

how to generate auto numbering with name sequence such as "MWEIP_IP_0001"..??

Regular Member

how to generate auto numbering with name sequence such as "MWEIP_IP_0001"..??

Hi..

here i am providing the code that i have can you please rectify if it has any error

<!-- set the number to a generated number -->

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

<!-- add a prefix for variant parts -->

<Value algorithm="wt.rule.algorithm.BooleanBranch">

  <Value algorithm="wt.rule.algorithm.EqualsTest">

  <Attr id="genericType"/>

  <Arg>variant</Arg>

  </Value>

  <Arg>V</Arg>

  <Arg></Arg>

  </Value>

<!-- the sequence -->

<Arg>MWEIP_IP_</Arg>

<Arg>{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:4:0}</Arg>

<AttrValue>

3 REPLIES 3

Re: how to generate auto numbering with name sequence such as "MWEIP_IP_0001"..??

This should be fine.

Re: how to generate auto numbering with name sequence such as "MWEIP_IP_0001"..??

Hi Madhu,

Are you facing any issues with the modified OIR?

Regards,

Bhushan

Re: how to generate auto numbering with name sequence such as "MWEIP_IP_0001"..??

Hi..,

i found the error.

it is at the end of the code

</AttrValue> only.