OutputFormat Property

The format of the output data.

Object Oriented Interface

public function getOutputFormat();
public function setOutputFormat($value);

Procedural Interface

ipworksx12_x12translator_get($res, 6 );
ipworksx12_x12translator_set($res, 6, $value );

Default Value

0

Remarks

This property specifies the format of the output data. The value set here, along with InputFormat, determines how the data is converted when Translate is called.

Possible values are:

  • 0 (ofXML)
  • 1 (ofJSON)
  • 3 (ofX12)
Before calling Translate, both InputFormat and OutputFormat must be specified. Translation from XML or JSON to EDI and vice versa are supported. If InputFormat is ifXML or ifJSON, OutputFormat must be an EDI format. Similarly, if InputFormat is an EDI format, OutputFormat must be ofXML or ofJSON.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks X12 2020 PHP Edition - Version 20.0 [Build 8155]