1. Script object OG.Sequence

    Article: AN0002192Updated:
    Article text with the default language version is displayed because there is no article text for the selected language and version.

    This object offers functions for work with integer sequences.

    Script functions

     

    Name Description
    int GetNextValue( string code) Function returns a new value from sequence.
    string GetNextValueWithFormat(string code, string format) Function returns a new value from sequence in the given format.

    Object call

    OG.Sequence

    Call example

    This call returns integer value from the sequence.

    var number2 = OG.Sequence.GetNextValue( 'mySequence');

    This call returns text value from the sequence, e.g.: INC000123.

    var number = OG.Sequence.GetNextValueWithFormat( 'mySequence', 'INC{#:000000}');

×