Article: Creating Loops – JS

Index

Creating Loops

Loops are the logical groups of segments. Once an EDILightWeightDocument is created loops can be added.

Example

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

Now segments can be added to the interchangeLoop

Related Articles

Main Categories