Creating Segments – JS

Index

    Creating Segments

    Segments contains data elements. Once loops are created segments can be added.

    Example

    const edi = require(‘rdpcrystal-edi-library’);
     
    let doc = new edi.EDILightWeightDocument();
     
    let interchangeLoop = doc.createLoop(“Interchange header”);
    let isa = interchangeLoop.createSegment(“ISA”);

    Now elements can be added to the isa segment

    in EDI Lightweight Document – JS
    Did this article answer your question?