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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

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

mnalla
7-Bedrock

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

This should be fine.

Hi Madhu,

Are you facing any issues with the modified OIR?

Regards,

Bhushan

Hi..,

i found the error.

it is at the end of the code

</AttrValue> only.

Announcements

Top Tags