IPWorks EDI 2020 Python Edition

Questions / Feedback?

on_segment Event

Fires whenever a data segment in a transaction set is read.

Syntax

class VDAReaderSegmentEventParams(object):
  @property
  def tag() -> str: ...
  @property
  def name() -> str: ...
  @property
  def loop_name() -> str: ...
  @property
  def full_segment() -> str: ...

# In class VDAReader:
@property
def on_segment() -> Callable[[VDAReaderSegmentEventParams], None]: ...
@on_segment.setter
def on_segment(event_hook: Callable[[VDAReaderSegmentEventParams], None]) -> None: ...

Remarks

The on_segment event will fire when a data segment is read. The Tag parameter contains the tag of the segment. Name contains the name of the segment as defined in the associated transaction set schema. LoopName contains the name of the loop or group this segment is present in (such as N1Loop1).

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Python Edition - Version 20.0 [Build 8162]