EDI Basics

How To Generate a 999/997 Acknowledgement EDI Data Using NodeJS

In this tutorial we’ll discuss how generate a 999 or 997 Acknowledgement EDI using NodeJS.  After validating EDI data using the EDIValidator component acknowledgment data can be generated. EDIValidator takes two parameters, a validation rules file and the EDI data to validate.   The overall validation process looks like the diagram below.     A validation rule file …

How To Generate a 999/997 Acknowledgement EDI Data Using NodeJS Read More »

Creating EDI data using NodeJS/JavaScript

Creating EDI data is simple using the EDILightWeightDocument component. Simply create an instance, set its loops and segments, and call its generateEDIData() method. The EDILightWeightDocument structure is based on a loop hierarchy. Loops contain segments and other loops. Segments contain elements. Elements contains data and composite elements. This example creates an EDILightWeightDocument instance, set its …

Creating EDI data using NodeJS/JavaScript Read More »

Use .Net To Validate EDI Data with Code Conditions

Background As you know the EDIValidator component uses rules files to validate EDI data.  You can specify rather complex conditions.  For example +SegPos[322] = if ((SegPos[316:1] == “R”) or (SegPos[316:1] == “S”)) then Usage[Required] else Usage[Optional] end This rules says that segment number 322’s usage depends on whether the condition in the if statement is true.  The following example also contains else if …

Use .Net To Validate EDI Data with Code Conditions Read More »