Re: [HAPI-devel] Insert segment repetition

2013-10-31 Thread Andrew Bowden
).insertNK1(2); // no runtime error Many thanks for your help. Andrew From: Christian Ohr [mailto:[email protected]] Sent: Friday, 1 November 2013 1:03 AM To: Andrew Bowden Cc: [email protected] Subject: Re: [HAPI-devel] Insert segment repetition hi, do you rely on working on an

Re: [HAPI-devel] Insert segment repetition

2013-10-31 Thread Christian Ohr
hi, do you rely on working on an untyped message (i.e. AbstractMessage)? In this case, adding a segment (repetition) can be ambiguous as it is not clear where in the message the segment should actually be added. Messages of different types and versions usually have a dedicated structure definition

[HAPI-devel] Insert segment repetition

2013-10-30 Thread Andrew Bowden
Hi all, What is the best way to insert a new segment into an existing message. I need to add a repeating NK1 to transform an existing message for compliance, however whenever I try to insert a new NK1 segment using a terser, the code throws an exception. I can avoid this by setting the first