{{Quickfixn}} FW: FW: Custom_Fields
Grant Birchmeier
gbirchmeier at connamara.com
Thu Nov 21 15:04:28 PST 2013
You created a "RegulatoryTradeIDGrp" component, but did you add this
component to the ExecutionReport definition? Gotta do that.
After that, you need to do like it says under "Reading Groups" on the
tutorial page.
var regTradeIdGroup = msg.GetGroup(1, 1907); // first group of 1907
string regTradeId1 = regTradeIdGroup.GetString(1903);
regTradeIdGroup = msg.GetGroup(2, 1907); // second group
string regTradeId2 = regTradeIdGroup.GetString(1903);
See?
On Thu, Nov 21, 2013 at 1:51 PM, Ashutosh Mishra <A.Mishra at ny.tr.mufg.jp>wrote:
> Sorry, this is what is there in the DD file:
>
>
>
> <components>
>
> <component name="RegulatoryTradeIDGrp">
>
> <group
> name="NoRegulatoryTradeIDs" required="N">
>
> <field
> name="RegulatoryTradeID" required="Y"/>
>
> <field
> name="RegulatoryTradeIDSource" required="Y"/>
>
> <field
> name="RegulatoryTradeIDEvent" required="N"/>
>
> <field
> name="RegulatoryTradeIDType" required="N"/>
>
> </group>
>
> </component>
>
>
>
> And I need the RegulatoryTradeID field.
>
>
>
>
>
> Thanks & Regards,
>
> Ashutosh Mishra
>
>
>
>
> *********************************************************************************
>
> This communication (including any attachments) is intended only or the use
> of the individual whom it is addressed and may contain information that is
> privileged, confidential or legally protected. If the reader of this
> message is not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this communication in error, please notify
> us immediately by replying to the message. Please also delete the message
> and its attachments, if any, from your computer and destroy any hard copies
> you may have created. Thank you for your cooperation.
>
>
> *********************************************************************************
>
>
>
> *From:* quickfixn-bounces at lists.quickfixn.com [mailto:
> quickfixn-bounces at lists.quickfixn.com] *On Behalf Of *Grant Birchmeier
> *Sent:* Thursday, November 21, 2013 2:40 PM
>
> *To:* Mailing list for QuickFIX/n
> *Subject:* Re: {{Quickfixn}} FW: FW: Custom_Fields
>
>
>
> I'm really confused. Are you sending the message or receiving it?
> Because it looks like you're trying to create a group, which you'd only do
> if you were sending. But earlier you were complaining that you can't
> *receive* them. Which is it?
>
>
>
> I see in your earlier email that you added the field definitions, but did
> you edit the message definition or ExecutionReport? You have to do this to
> tell the engine that 1903 belongs in an ExecutionReport.
>
>
>
> Also, in the future, please tell me what the error actually is.
>
>
>
> On Thu, Nov 21, 2013 at 1:33 PM, Ashutosh Mishra <A.Mishra at ny.tr.mufg.jp>
> wrote:
>
> Still struggling with repeated groups. Can you plz tell wht rong I am
> doing in this code:
>
>
>
> QuickFix.Group NoRegulatoryTradeIDs = new QuickFix.Group(1907, 1);
>
> NoRegulatoryTradeIDs.SetField(1903,"string");
>
> m.AddGroup(NoRegulatoryTradeIDs);
>
> const int RegulatoryTradeID = 1903;
>
> string regTradeId = NoRegulatoryTradeIDs.GetString(RegulatoryTradeID);
>
> Console.WriteLine("Unique Swap ID:" + regTradeId);
>
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
--
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131121/e2f71c89/attachment-0002.htm>
More information about the Quickfixn
mailing list