Comments (4)
@wainlake I am currently looking into this
from edi.net.
@wainlake
The main problem with how you have modelled your classes is the following:
You have decorated the DTM
class to always create a new structural group using the SegmentGroupAttribute
. This is not the case for DTM as it is not defining a segment-loop by itself. Also this structure did not declare a terminating marker (SequenceEnd segment) thus the deserializer was trying to put everything after the DTM
(TC2,MSG, etc...) under that class.
Checkout an improved version of your PurchaseOrder class
If this resolves your problem please tell me, so I can close the issue
Thanks
from edi.net.
@cleftheris Thanks. Or perhaps I'm making too much of it. It's fine now. EDI.NET is too nice.
The other question is about the data type. If I defined one element as "9(2)" and the given value is 1,it'll serialize to "Z1".How to fix it?
Btw, I think the SE Segment should be located at the bottom of transaction set, is it a clerical error?
from edi.net.
@wainlake glad to hear its working out for you.
So about your questions
- As a workaround mark the picture as
9(1)
. For the explanation: The thing with picture syntax is that I have not made up my mind how to treat it when we are serializing back to edi text file. I have an open ticket where I am thinking about this #23. TheZ
is commonly used for padding a number that would otherwise have to be fixed length when represented as text. Say for the number24
when written to text in a edi component with a fixed length of3
then it must be padded as etherZ24
or024
or even24
. I am trying to figure out what is the best way to handle this. - for well known structural segments such as those that mark the interchange, group, and message boundaries the order is well known internally and the values are sorted before writing no matter how they are laid out inside your class. For all the other segments the order is important. Internal values found on segments (Component) on the other hand are already indexed so the order is taken care of by the path.
from edi.net.
Related Issues (20)
- Question for path HOT 3
- X12 - automatic detection of grammar
- Set font when use EdiSerializer().Deserialize
- X12 - Segment ISA - Component element separator HOT 2
- X12 - Reuse data segment code (example: N1 Loop Party Identification) HOT 1
- X12 - N1 Loop PartyIdentification for EDI 940 HOT 1
- Parser cannot process escaped plus sign for phone number in PartyMutuallyDefined NAD record HOT 1
- Two segment groups with the same path HOT 1
- Repeating element groups within segment for X12 830 HOT 1
- Repeated elements in a segment
- Picture with implicit V9 on decimal? still adds a decimal separator HOT 4
- [Q] Error was thrown for repeated segment groups HOT 3
- EdiCondition not working to RFF+CR HOT 1
- .net8 HOT 1
- Help understanding EdiSegment Path settings HOT 3
- Some Segments does not map properly
- List wih repeating elements HOT 4
- Enum deserialization does not work
- X12 270/271 Eligibility Benefit Inquiry
- TradaComs26v3 file Charge lines contain `=` sign in TCOD TariffDescription HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edi.net.