[QFJ-372] Creating Custom Groups Created: 20/Nov/08  Updated: 20/Mar/11  Resolved: 20/Mar/11

Status: Closed
Project: QuickFIX/J
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Other Priority: Default
Reporter: Herman Hung Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None


 Description   

Hi,

I would like to know how to read a non-standard group type from messages (in other words, a group not defined via FIX standard).

The group starts with tag 552 (NoSides), and proceeds with tags 54, 37, 11, 453 (NoPartyIDs, which is a sub group), and 58.
Sub group 453 contains tags 448 and 452. All I'm really concerned about is getting tag 54 from the message. As a result, I
am creating a separate class that extends the Group interface as follows:

public class NoSides extends quickfix.Group {

public NoSides()

{ super(552,54); }

}

Where, if I'm reading the documentation correctly, 552 should specify the number field of the group (NoSides), and 54 should
indicate the next field tag. However, I'm a bit confused about how to extract the Side field (field 54) from the message once I get it. I am currently
using the following code:

NoSides group = new NoSides();
StringField sidefield = new StringField(54);
System.out.println(message.getGroup(1, group).getField(sidefield).getValue());

But I don't think that that is working correctly. Any advice?

Thanks,
Herman



 Comments   
Comment by Steve Bate [ 26/Nov/08 ]

What kind of problem are you having?

Generated at Tue Jul 01 07:56:45 UTC 2025 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.