Skip to main content
1-Visitor
March 14, 2017
Question

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

  • March 14, 2017
  • 2 replies
  • 2039 views

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>

2 replies

10-Marble
March 15, 2017

This should be fine.

16-Pearl
March 16, 2017

Hi Madhu,

Are you facing any issues with the modified OIR?

Regards,

Bhushan

mnalla1-VisitorAuthor
1-Visitor
March 17, 2017

Hi..,

i found the error.

it is at the end of the code

</AttrValue> only.