EdiEngine icon indicating copy to clipboard operation
EdiEngine copied to clipboard

Acknowledgement Required in ISA

Open BeliaViktoria opened this issue 1 year ago • 1 comments

Hi! Is there any way to set Acknowledgement Required of ISA as 1? For now I see that it is hardcoded as 0. EdiDataWriterSettings settings = new EdiDataWriterSettings( new SegmentDefinitions.ISA(), new SegmentDefinitions.IEA(), new SegmentDefinitions.GS(), new SegmentDefinitions.GE(), new SegmentDefinitions.ST(), new SegmentDefinitions.SE(), "ZZ", "SENDER", "ZZ", "RECEIVER", "SENDER", "RECEIVER", "00401", "004010", "T", 276, 276, "\\", "*"); EdiDataWriter w = new EdiDataWriter(settings); Console.WriteLine(w.WriteToString(b));

BeliaViktoria avatar Mar 29 '24 10:03 BeliaViktoria

Hi, i think it is hardcoded by default, but you can create ISA Segment and then replace Content, smth like


var isa = new SegmentDefinitions.ISA();
isa.Content[12] = new EdiSimpleDataElement((MapSimpleDataElement)isa.Content[12], "1"),

I havent tried it though

olmelabs avatar Apr 16 '24 11:04 olmelabs