I already tried that but I always got that error : "Incorrect call of number sequence" when the numberSeq.num() is executed. That's why I asked if it's possible or not. Do you know why I always got that error?
----- Original Message ----- From: Andrae, Tobias To: [EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 12:12 PM
Subject: AW: [development-axapta] Get next NumberSequence by code.
hey - that's a joke, isn't it??
There is a class called NumberSeq that provides you with a valid number from a Number sequence. The easiest way to use it:
void xyz ()
{
NumberSeq numberSeq;
Voucher voucher;
; numberSeq = NumberSeq::newGetNumFromCode("NameOfNumberSequence"); // fill in
your wanted number sequence
voucher = numberSeq.num();}
that's it - no messin' around with tables and formats......
best regards, Tobias
-----Ursprüngliche Nachricht-----
Von: johnn_16 [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 29. Oktober 2003 16:56
An: [EMAIL PROTECTED]
Betreff: [development-axapta] Get next NumberSequence by code.
Hi, I would like to create a new line in a table that need to have a ParmId. The ParmId isn't a default value so I must set it by code. I would like to know if there is a easy way to do that or if I must to do it manualy.
If I must do it manualy, is there something special to know? Here's what I'll do. I'll need to get the NumberSequence format and the next value. I'll merge those two values to get the formated NumberSequence and I'll increment the next value in the NumberSequenceTable. Is there something else to do?
Any help will be appreciate. Thanks!
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Sponsor ADVERTISEMENT
click here
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

