Re: [Quickfix-developers] repeating group - saying field not available
Brought to you by:
orenmnero
|
From: Rick L. <ric...@gm...> - 2007-12-05 15:05:36
|
After looking further into my issue, I believe it has to do with improperly /creating /the message. I'm attempting to generically create a group (not knowing, necessarily, /which /repeating group it is (meaning I don't know if it's the NoMDEntries, or NoLegs, etc. group). I'm given the message field by field, and I had been just adding the fields as they came (so even if a field was part of a repeating group, I'd just keep calling message.setField() for each time; each time it would overwrite the previous field. So now I'm trying to properly construct the message using the Group class, however I'm having a hard time getting the length field to automatically be created like it is when you use type-specific groups. In other words, here are the messages I get, in order, from the exchange: 1.) [555] = 2 2.) [600] = [N/A] 3.) [623] = 1 4.) [602] = 980018 5.) [603] = 8 6.) [624] = 1 7.) [600] = [N/A] 8.) [623] = 1 9.) [602] = 980023 10.) [603] = 8 11.) [624] = 1 How could I construct a generic Group object such that it includes the tag [555]? If I do the following QuickFix doesn't know that both groups belong to the same sequence. Can groups be constructed generically? QuickFix.Group group1 = new QuickFix.Group(1, 0); group1 .setField(600, "[N/A]") group1 .setField(623, "[N/A]") ... QuickFix.Group group2 = new QuickFix.Group(1, 0); group2 .setField(600, "[N/A]") group2 .setFi eld(623, "[N/A]") ... message.addGroup(group1); message.addGroup(group2); Thanks, Rick Oren Miller wrote: > Do you have the full message? > > --oren > > On Dec 4, 2007, at 3:34 PM, Rick Lane wrote: > >> QuickFIX Documentation: >> http://www.quickfixengine.org/quickfix/doc/html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> 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 >> > |