NumberSequence to new table

srisai123srisai123 Member Posts: 5
edited 2007-01-10 in Dynamics AX
Hi Friends,

In Axapta 3.0, How to set NumberSequence to particular field in new table. If code is available pls send to me.




[/quote]

Comments

  • jdemejdeme Member Posts: 12
    Hi srisai123,

    To set a number sequence you have to first create the a number sequence and in the initValue() method of the table initialize the value of the particular field to the next available number from the number sequence you created.

    example:
    NumberSeq numSeq;
    ;
    numSeq = NumberSeq::newGetNumFromCode(the num seq you created);
    table.field = numSeq.num();

    Regards
    jdeme
Sign In or Register to comment.