Skip to main content
Solved

CS Error: Cannot generate the next number for the sequence Custome DAC ?


Forum|alt.badge.img
  • Freshman I
  • 22 replies

I got CS Error: Cannot generate the next number for the  sequence on Custome DAC and Custome New Screen 

 



This My DAC

 



    public static class MyNumberingSequence
    {
        public const string SequenceID = "BUYINGDOC"; // New sequence ID
        public class sequenceID : PX.Data.BQL.BqlString.Constant<sequenceID>
        {
            public sequenceID() : base(SequenceID) { }
        }
    }


1. Why i got erorr CS Error: Cannot generate the next number for the  sequence ?
2. Why I got  <SELECT> not <NEW> , can u help for change the default value to  <NEW> like reciept secreen entry ?
 

Can you help me sense ?
Thanks

Best answer by Naveen Boga

@Febri Can you please try like below and I think it will resolve your issue.

 

Include SEARCH for AutoNumber Attribute

 

[AutoNumber(typeof(Search<MyNumberingSequence.sequenceID>), typeof(AccessInfo.businessDate))]

View original
Did this topic help you find an answer to your question?

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3407 replies
  • Answer
  • May 27, 2024

@Febri Can you please try like below and I think it will resolve your issue.

 

Include SEARCH for AutoNumber Attribute

 

[AutoNumber(typeof(Search<MyNumberingSequence.sequenceID>), typeof(AccessInfo.businessDate))]


Forum|alt.badge.img
  • Author
  • Freshman I
  • 22 replies
  • May 30, 2024

Thanks sense, this is solve 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings