Skip to content

qie.createEDIFACTMessage

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

Returns: EDIFACT Message message - the newly created message object

Replace the current message with an empty EDIFACT formatted message.

Note

Calling qie.createEDIFACTMessage() with no parameters creates a new EDIFACT message using the default separators.

Note

The return value MUST ALWAYS be assigned to the bound-in message object.

Parameters

Type Name Description Default
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

// Example: create a new EDIFACT message with explicit separators.

message = qie.createEDIFACTMessage(
    "'",        // segment separator
    "+",        // element separator
    ":",        // component separator
    "?",        // escape character
    "UTF-8"     // character encoding
);