Configure a syntax to generate sample names

  1. Create a syntax in the CCSNTX—Syntax application.

  2. Enter the following fields:

    Organisation Scope

    Syntax Code: SAMPLE_NAME_SYNTAX

    Syntax Type: Sample

    Is Active: Checked

  3. Enter syntax details, for example:

    Syntax:

    ${
    String JobNo=Job.name.asEllipseValue
    LastJobSampleSequence++
    String seq="000"+LastJobSampleSequence
    seq = seq.substring(seq.length()-3,seq.length())
    return JobNo+"."+seq
    }

    Outer Seq Floor: 1

    Outer Seq Ceiling: 9999999999

    Outer Seq Increment: 1

  4. Click Submit.