![](/img/trans.png)
[英]Prowide-Core Library - Unable to get Sequence E tags in an MT564 swift message
[英]How to Get the Specified Tags for SequenceB in MT204
使用以下方法獲取標簽時
MT204.SequenceB sequenceB = mt204.getSequenceBList().get(i);
transactionReferenceNumberSeqB[i] = (Field20) sequenceB.getFieldByName("20");
從SequenceA
填充的值,該值也包含帶有Field20
的項。 不是來自SequenceBList
。
什么地方出了錯 ?
當我檢查調試模式'sequenceB'包含所有標簽時,如何發生。
這可以通過使用完整列表並正確放置字段ID來實現。
SwiftBlock4 block4 = mt20x.getSwiftMessage().getBlock4();
if(index < block4.countAll()) // this helps to avoid null pointer exception
{
Field fieldVal = block4.getField(index) // where index should be correct values to match the order
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.