You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to omit the segment from your transmission you have to wrap it in a segment decorated class. After that if the property that holds the N1Segment is set to null the serializer will skip it completely.
Just got a chance to try this. Worked great! Thanks…..Mike
From: Constantinos Leftheris ***@***.***>
Sent: Monday, February 6, 2023 1:10 PM
To: indice-co/EDI.Net ***@***.***>
Cc: Morris, Michael W. ***@***.***>; Author ***@***.***>
Subject: Re: [indice-co/EDI.Net] How to omit unpopulated segment? (Issue #242)
Hi,
In order to omit the segment from your transmission you have to wrap it in a segment decorated class. After that if the property that holds the N1Segment is set to null the serializer will skip it completely.
C.
—
Reply to this email directly, view it on GitHub<#242 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5GJURS5JUFLSSYF6H37G4TWWE46JANCNFSM6AAAAAAUSZLEII>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
I am trying to omit the 'N2' segment from being written out to an 855 Document file. There is no data for the segment but it writes the line anyway.
I have set the Mandatory attribute flag to false and not declared it at all without success.
Thanks for any help.
The text was updated successfully, but these errors were encountered: