Generate EDIFACT UNA documentation is incorrect?

Post author
Jimmy

We are trying to generate Pricat files and force in UNA segment (vendor wants it) and we found the documentation for generating the UNA segment here.

But following the example provided there doesn't work. It gives a "No constructor that takes 5 arguments exist".

I then took a look in your example files on github that suggests it should be done like this instead:

var separators = Separators.Edifact;
separators.Segment = '|';
separators.ComponentDataElement = ':';
separators.DataElement = '+';
separators.RepetitionDataElement = '*';
separators.Escape = '?';

So, is the documentation incorrect/outdated, or is it us using an older version? The documentation is 3 years old according to the last updated entry. And that is about when we got a license and the version from which we are using, which is 10.2.1

Comments

1 comment

  • Comment author
    Admin

    Hello,

    You can always create an instance of the UNA class, populate it, and use it as you wish.

    BTW, the object reference documentation has been updated, thank you for noticing.

    0

Please sign in to leave a comment.