read field in the sequence

Imported from previous forum

Hi,
what is the easiest way to read field value in the sequence by the field
name?

....

Thanks

So I need to read the value of MDEntryType

So I need to read the value of MDEntryType
Are you using any library (say QuickFast) for FAST decoding?

So I need to read the value of MDEntryType
Are you using any library (say QuickFast) for FAST decoding?
Yes, I forgot to add. I use OpenFast and process messages with Message data type. So for the non-sequence fields I use message.getString("…") construction

So I need to read the value of MDEntryType
Are you using any library (say QuickFast) for FAST decoding?
Yes, I forgot to add. I use OpenFast and process messages with Message data type. So for the non-sequence fields I use message.getString("…") construction

Check this out (writeGroup and writeSequence methods), should help you with your parsing logic
https://code.google.com/p/umdf-decoder/source/browse/trunk/java/src/main/java/com/lasalletech/umdf/util/umdf_fix_dump/Main.java?r=55

And the javaDocs (check the class Sequence and methods it inherits from openfast.templae.Field)
http://www.openfast.org/apidocs/

So I need to read the value of MDEntryType
Are you using any library (say QuickFast) for FAST decoding?
Yes, I forgot to add. I use OpenFast and process messages with Message data type. So for the non-sequence fields I use message.getString("…") construction

Check this out (writeGroup and writeSequence methods), should help you with your parsing logic
https://code.google.com/p/umdf-decoder/source/browse/trunk/java/src/main/java/com/lasalletech/umdf/util/umdf_fix_dump/Main.java?r=55

And the javaDocs (check the class Sequence and methods it inherits from openfast.templae.Field)
http://www.openfast.org/apidocs/

Ok it works:
SequenceValue secval =message.getSequence (“SEQUENCE NAME”)
if (secval.getValues().length>0)
secval.getValues()[0].getString(“FIELD NAME”)

reading it in the cycle is a bit heavy and pointless for this particular template