Discussion:
Continouse number sequence...??
(too old to reply)
Hamza
2008-09-17 07:14:01 UTC
Permalink
Dear all,
I have an issue required a continouse number sequence setup...the situation:
1. i created a new number sequence in the (Number sequence) form.
2. this number sequence is a continouse one.
3. what i really want to do how wtite a code which allow me to get a new
number from this new continouse number sequence.
And please tell me where i should put the code which allow me to get new
number.
Please help me...
Regards.
Hamza.
a***@gmail.com
2008-09-17 09:57:03 UTC
Permalink
Post by Hamza
Dear all,
1. i created a new number sequence in the (Number sequence) form.
2. this number sequence is a continouse one.
3. what i really want to do how wtite a code which allow me to get a new
number from this new continouse number sequence.
And please tell me where i should put the code which allow me to get new
number.
Please help me...
Regards.
Hamza.
Hi Hamza,

You use the number sequence class (NumberSeq) for handling number
sequences.

To get a new number from your number sequence:

NumberSeq::newGetNumFromCode(<insert code of created number
sequence>).num()

Regards,
Arnhem
Hamza
2008-09-17 10:24:01 UTC
Permalink
Dear Arnhem,
Thanks for your reply, but it doesn't work since the number sequence is a
("Continous").So when i wrote what you told me this message shown.
"System does not support setup 'continous' of number sequence FixTax."
Note: "FixTax" is a created "Continous Number Sequence".
Please help me in that.
Best regards.
Hamza.
Post by a***@gmail.com
Post by Hamza
Dear all,
1. i created a new number sequence in the (Number sequence) form.
2. this number sequence is a continouse one.
3. what i really want to do how wtite a code which allow me to get a new
number from this new continouse number sequence.
And please tell me where i should put the code which allow me to get new
number.
Please help me...
Regards.
Hamza.
Hi Hamza,
You use the number sequence class (NumberSeq) for handling number
sequences.
NumberSeq::newGetNumFromCode(<insert code of created number
sequence>).num()
Regards,
Arnhem
unknown
2008-09-17 11:34:01 UTC
Permalink
newGetNumFromCode method has a second parameter _makeDesicionLater.
If you set it to true, you will not get the error message.

But than you need to make sure you abort the numberSequence (or set is as
being used) after the number is allocated.

For example, look at Classes\PurchAutoCreate\setPurchTable method.
--
Kashperuk Ivan (Vanya), SDET, Inventory management, Microsoft Dynamics AX
My blog - http://kashperuk.blogspot.com
Download MorphX IT in Russian - http://www.lulu.com/content/723888
Post by Hamza
Dear Arnhem,
Thanks for your reply, but it doesn't work since the number sequence is a
("Continous").So when i wrote what you told me this message shown.
"System does not support setup 'continous' of number sequence FixTax."
Note: "FixTax" is a created "Continous Number Sequence".
Please help me in that.
Best regards.
Hamza.
Post by a***@gmail.com
Post by Hamza
Dear all,
1. i created a new number sequence in the (Number sequence) form.
2. this number sequence is a continouse one.
3. what i really want to do how wtite a code which allow me to get a new
number from this new continouse number sequence.
And please tell me where i should put the code which allow me to get new
number.
Please help me...
Regards.
Hamza.
Hi Hamza,
You use the number sequence class (NumberSeq) for handling number
sequences.
NumberSeq::newGetNumFromCode(<insert code of created number
sequence>).num()
Regards,
Arnhem
Hamza
2008-09-17 11:52:01 UTC
Permalink
Dear Kashperuk ,
Please help me it doesn't work....this is my code and ok it doesn't give me
the error message but it also does not give me the sequence format..it gave
me (00)...
select NumberSequenceTable
where (NumberSequenceTable.NumberSequence == 'FixTax');
{
numberSeq = NumberSeq::newGetNumFromCode
(NumberSequenceTable.NumberSequence,true);
HRMFixTaxConstant.Code = numberseq.num();
}
numberseq.used();
Post by unknown
newGetNumFromCode method has a second parameter _makeDesicionLater.
If you set it to true, you will not get the error message.
But than you need to make sure you abort the numberSequence (or set is as
being used) after the number is allocated.
For example, look at Classes\PurchAutoCreate\setPurchTable method.
--
Kashperuk Ivan (Vanya), SDET, Inventory management, Microsoft Dynamics AX
My blog - http://kashperuk.blogspot.com
Download MorphX IT in Russian - http://www.lulu.com/content/723888
Post by Hamza
Dear Arnhem,
Thanks for your reply, but it doesn't work since the number sequence is a
("Continous").So when i wrote what you told me this message shown.
"System does not support setup 'continous' of number sequence FixTax."
Note: "FixTax" is a created "Continous Number Sequence".
Please help me in that.
Best regards.
Hamza.
Post by a***@gmail.com
Post by Hamza
Dear all,
1. i created a new number sequence in the (Number sequence) form.
2. this number sequence is a continouse one.
3. what i really want to do how wtite a code which allow me to get a new
number from this new continouse number sequence.
And please tell me where i should put the code which allow me to get new
number.
Please help me...
Regards.
Hamza.
Hi Hamza,
You use the number sequence class (NumberSeq) for handling number
sequences.
NumberSeq::newGetNumFromCode(<insert code of created number
sequence>).num()
Regards,
Arnhem
Iin Dewi
2008-09-19 09:21:01 UTC
Permalink
try this one :

numberSequenceTable = NumberSequenceTable::find(numberSequenceCode);
numberSeq =
NumberSeq::newGetNumFromCode(numberSequenceTable.NumberSequence, true);
nextNum = numberSeq.num();
Post by Hamza
Dear Kashperuk ,
Please help me it doesn't work....this is my code and ok it doesn't give me
the error message but it also does not give me the sequence format..it gave
me (00)...
select NumberSequenceTable
where (NumberSequenceTable.NumberSequence == 'FixTax');
{
numberSeq = NumberSeq::newGetNumFromCode
(NumberSequenceTable.NumberSequence,true);
HRMFixTaxConstant.Code = numberseq.num();
}
numberseq.used();
Post by unknown
newGetNumFromCode method has a second parameter _makeDesicionLater.
If you set it to true, you will not get the error message.
But than you need to make sure you abort the numberSequence (or set is as
being used) after the number is allocated.
For example, look at Classes\PurchAutoCreate\setPurchTable method.
--
Kashperuk Ivan (Vanya), SDET, Inventory management, Microsoft Dynamics AX
My blog - http://kashperuk.blogspot.com
Download MorphX IT in Russian - http://www.lulu.com/content/723888
Post by Hamza
Dear Arnhem,
Thanks for your reply, but it doesn't work since the number sequence is a
("Continous").So when i wrote what you told me this message shown.
"System does not support setup 'continous' of number sequence FixTax."
Note: "FixTax" is a created "Continous Number Sequence".
Please help me in that.
Best regards.
Hamza.
Post by a***@gmail.com
Post by Hamza
Dear all,
1. i created a new number sequence in the (Number sequence) form.
2. this number sequence is a continouse one.
3. what i really want to do how wtite a code which allow me to get a new
number from this new continouse number sequence.
And please tell me where i should put the code which allow me to get new
number.
Please help me...
Regards.
Hamza.
Hi Hamza,
You use the number sequence class (NumberSeq) for handling number
sequences.
NumberSeq::newGetNumFromCode(<insert code of created number
sequence>).num()
Regards,
Arnhem
Hamza
2008-09-20 16:15:01 UTC
Permalink
Dear Mr.Dewi,
Thanks for your reply but unfortentily it still give me the same
result...Please is there any wrong in this code...!!
numberSequenceTable = NumberSequenceTable::find('FixTax');
numberSeq =
NumberSeq::newGetNumFromCode(numberSequenceTable.NumberSequence, true);
HRMFixTaxConstant.Code = numberSeq.num();

Please help me and tell me if there is something wrong.
Thanks alot for your help.
Regards
Hamza
Post by Iin Dewi
numberSequenceTable = NumberSequenceTable::find(numberSequenceCode);
numberSeq =
NumberSeq::newGetNumFromCode(numberSequenceTable.NumberSequence, true);
nextNum = numberSeq.num();
Post by Hamza
Dear Kashperuk ,
Please help me it doesn't work....this is my code and ok it doesn't give me
the error message but it also does not give me the sequence format..it gave
me (00)...
select NumberSequenceTable
where (NumberSequenceTable.NumberSequence == 'FixTax');
{
numberSeq = NumberSeq::newGetNumFromCode
(NumberSequenceTable.NumberSequence,true);
HRMFixTaxConstant.Code = numberseq.num();
}
numberseq.used();
Post by unknown
newGetNumFromCode method has a second parameter _makeDesicionLater.
If you set it to true, you will not get the error message.
But than you need to make sure you abort the numberSequence (or set is as
being used) after the number is allocated.
For example, look at Classes\PurchAutoCreate\setPurchTable method.
--
Kashperuk Ivan (Vanya), SDET, Inventory management, Microsoft Dynamics AX
My blog - http://kashperuk.blogspot.com
Download MorphX IT in Russian - http://www.lulu.com/content/723888
Post by Hamza
Dear Arnhem,
Thanks for your reply, but it doesn't work since the number sequence is a
("Continous").So when i wrote what you told me this message shown.
"System does not support setup 'continous' of number sequence FixTax."
Note: "FixTax" is a created "Continous Number Sequence".
Please help me in that.
Best regards.
Hamza.
Post by a***@gmail.com
Post by Hamza
Dear all,
1. i created a new number sequence in the (Number sequence) form.
2. this number sequence is a continouse one.
3. what i really want to do how wtite a code which allow me to get a new
number from this new continouse number sequence.
And please tell me where i should put the code which allow me to get new
number.
Please help me...
Regards.
Hamza.
Hi Hamza,
You use the number sequence class (NumberSeq) for handling number
sequences.
NumberSeq::newGetNumFromCode(<insert code of created number
sequence>).num()
Regards,
Arnhem
Continue reading on narkive:
Search results for 'Continouse number sequence...??' (Questions and Answers)
11
replies
seriouse question to evolution and creation!?
started 2008-05-28 23:22:47 UTC
biology
Loading...