Skip to content

qie.parseEDIFACTString

Signature: qie.parseEDIFACTString(value, segment*, element*, component*, escape*, encoding*)

Returns: EDIFACT Message edifactMessage - the associated EDIFACT message object

Parse the input string as EDIFACT and return the associated message object.

Note

The return value CAN NEVER be assigned to the bound-in message object; it should be assigned to a locally declared variable.

Parameters

Type Name Description Default
String value the source string to be parsed
String segment* (optional) the EDIFACT segment separator '
String element* (optional) the EDIFACT element separator +
String component* (optional) the EDIFACT component separator :
String escape* (optional) the EDIFACT escape character ?
String encoding* (optional) the character encoding for this message Source Node encoding

Example

var edifactString = "UNA:+.? 'UNB+UNOB:4+STYLUSSTUDIO:1+DATADIRECT:1+20051107:1159+6002'UNZ+1+6002'";

var edifactMessage = qie.parseEDIFACTString(edifactString);