Loading EDI Data – JS

Index

    Loading EDI Data

    EDIFileLoader allows developers to load EDI data using the EDIDataString property.

    Example

    const edi = require(‘rdpcrystal-edi-library’);
     
    let dataToLoad = “ISA*00*          *00*          ….”;
     
    //Create a new EDIFileLoader
    let fileLoader = new edi.EDIFileLoader();
     
    fileLoader.EDIDataString = dataToLoad;
     
    //Load EDI Data
    let flatDoc = fileLoader.load();
     
    The load() methods returns a EDILightWeightDocument
    in EDI File Loader – JS
    Did this article answer your question?