EDIFACT Integrator - Online Help
EDIFACT Integrator
Questions / Feedback?

ResolveSchema Event

Fires whenever a new transaction set is encountered and no schema is found for it.

Syntax

[VB.NET]
Public Event OnResolveSchema As OnResolveSchemaHandler
[C#]
public event OnResolveSchemaHandler OnResolveSchema;

public delegate void OnResolveSchemaHandler(object sender, EdifacttranslatorResolveSchemaEventArgs e);

class EdifacttranslatorResolveSchemaEventArgs : EventArgs {
  string TransactionCode {get;}
  string StandardVersion {get;}
}

Remarks

The ResolveSchema event will fire when a the component encounters the header segment of a new transaction set, but it finds no schema corresponding to it already loaded.

TransactionCode contains the code of the transaction, such as "810" or "APERAK".

StandardVersion contains the version of the transaction, such as "004010" or "D95A".

When processing this event, the caller can use LoadSchema() to load a new schema into the component that can be used to parse the transaction.

After the event fires, if the component still doesn't have a matching schema, then it will attempt schema-less parsing of the transaction set.

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
Build 1.0.6635.0