Menu

#3 ORDERRepetitionsUsed

open
nobody
None
5
2013-01-03
2013-01-03
Anonymous
No

ORDERRepetitionsUsed is not correct in OML_021
If i generate a new Mesage with:

PipeParser parser = new PipeParser();

OML_O21 oml = new OML_O21();
oml.GetORDER(0).ORC.FillerOrderNumber.NamespaceID.Value="1";
oml.GetORDER(1).ORC.FillerOrderNumber.NamespaceID.Value = "1";

int z = oml.ORDERRepetitionsUsed; (z=2)

i get this OML_021 Message:

MSH|^~\&|||||||OML^O21|||2.5
ORC|||^1
ORC|||^1

But when i parse this generated Message back with:

OML_O21 parsedMessage = (OML_O21)parser.Parse(message);
if (parsedMessage is OML_O21)
{
int t = parsedMessage.ORDERRepetitionsUsed;
}

then the ORDERRepetitionsUsed is 1 and not 2 like above.

an i can not access the order No. 2

Anyone an idea??

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.