Custom No. Series Entry

upasanisandipupasanisandip Member Posts: 405
Hi all,
I have made custom entry no. series in table 308 (No. Series) & 309 (No. Series Line). I want to use that nos. in my new form. How can I use that ?
Anyone have idea?



Thanks,
Sandip.

Answers

  • ara3nara3n Member Posts: 9,257
    if you look how the code works on customer table, you can use the same on your new table. Basically on oninsert add the following code
      Setuptable.GET;
      Setuptable.TESTFIELD("Custom Nos.");
      NoSeriesMgt.InitSeries(Setuptable."Custom Nos.",xRec."No.      Series",0D,"No.","No. Series");
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • upasanisandipupasanisandip Member Posts: 405
    Hi ara3,
    giving me error
    You have specified an unknown variable
    No. Series
    Define the variable under cal gloabls.

    I am using following code

    SalesSetup.GET;
    SalesSetup.TESTFIELD("WebUsers Nos.");
    NoSeriesMgt.InitSeries(SalesSetup."WebUsers Nos.",xRec."No. Series",0D,"No.","No. Series");
    END;
  • 2tje2tje Member Posts: 80
    "No. Series" is not a variable but a field. Take a look at the tables 18, 23, 36, 38 etc.
    To see what is happening when inserting a new record, eg. Customer, you can use the debugger.
Sign In or Register to comment.