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

Using SequenceGenerator in code

$
0
0

Hi, all.

I need to use SequenceGenerator for WTPart in java code.

I have tried setNumber(SequenceGenerator.generateValue("WTPARTID_seq")) but result was not i expected to see.

Now i am trying setNumber(SequenceGenerator.generateValue("{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:10:0}")) but it throws SQLServerException: Index 1 out of range.

 

Can anyone give me working sample?

Thanks.


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>