[Quickfix-developers] repeating group - saying field not available
Brought to you by:
orenmnero
|
From: Rick L. <ric...@gm...> - 2007-12-04 21:34:21
|
Greetings,
I'm having trouble retrieving a repeating group and was hoping someone
could nudge me in the right direction. I'm attempting to grab
SecurityDefinition.NoLegs group. Below is a snippet of the FIX message:
9787=1*555=2*600=[N/A]623=1602=980018603=8624=1600=[N/A]623=1
602=980023603=8624=2
tag 555 is the NoLegs tag, and you can see here the value is 2, followed
by both entries in the repeating group (colored blue and orange). Here
is how I'm attempting to retrieve the group:
public override void onMessage(SecurityDefinition message,
QuickFix.SessionID session)
{
QuickFix.NoLegs noLegs = new NoLegs();
message.getField(noLegs);
int numLegs = noLegs.getValue();
for (uint i = 0; i < numLegs; i++) {
QuickFix44.SecurityDefinition.NoLegs group =
new QuickFix44.SecurityDefinition.NoLegs();
_message.getGroup(i + 1, group);_
...
The underlined red area is where I'm getting the FieldNotFound error.
What is missing from the FIX message (or what do I need to do
additionally) to be able to grab this group? If I can't use the
type-specific QuickFix44.SecurityDefinition.NoLegs class, is there a way
I can more manually extract this group?
Thanks in advance,
Rick
|