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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

OIR for Number Sequence with a starting number? (100001, 100002 etc)

lgrant
14-Alexandrite

OIR for Number Sequence with a starting number? (100001, 100002 etc)

Windchill 9.1 M60

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

This gives me numbers starting with 0 then padded with 0's for 9 digits. Anyone know how to start with a set number like 1 (example 100000000, 100000002 etc).

4 REPLIES 4
MikeLockwood
22-Sapphire I
(To:lgrant)

Not a Windcihll action. Need to edit the sequence in the database.

I did the following to prepend a Letter rather than a number, but maybe if you just put 1 right above the arg for the number generator it might suffice....see below... 1 {GEN:wt.enterprise.SequenceGenerator:EPM_seq:10:0} if you dont' anticipate that the "1" will eventually need to automatically change to a "2" perhaps this is a workable solution. can you let us know if this works for you

The number needs to come from the database. Any needed static text (prefix / suffix) is done using the OIR.

KD
4-Participant
4-Participant
(To:lgrant)

create a custom sequence in Database and use that in your OIR.

For more details see this thread

http://communities.ptc.com/docs/DOC-2463

Top Tags