ERP Integrator V2 - Online Help
ERP Integrator V2
Questions / Feedback?

WriteFieldValue Method

Write current segment field value.

Syntax

[VB.NET]
Public Sub WriteFieldValue(ByVal FieldName As String, ByVal Value As String)
[C#]
public void WriteFieldValue(string fieldName, string value);

Remarks

Use the WriteFieldValue method to specify the next Field-Value pair to be written in the current segment.

It is important to realize that fields must be written in the same order they should appear on the target IDoc document. The IDocWriter component does not automatically enforce ordering rules.

Example IDocWriter Code:

idocwriter1.StartIDoc()
idocwriter1.WriteControlRecord()
idocwriter1.StartSegment("Segment1")
idocwriter1.WriteFieldValue("Field1", "Value1")
idocwriter1.WriteFieldValue("Field2", "Value2")
...
idocwriter1.EndSegment()
idocwriter1.StartSegment("Segment2")
idocwriter1.WriteFieldValue("Field1", "Value1")
...
idocwriter1.EndSegment()
...
idocwriter1.EndIDoc()

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 2.0.6240.0