AnsweredAssumed Answered

Sequence numbers

Question asked by madhushree.krishnamurthy@logicinfo.com on Aug 30, 2018
Latest reply on Aug 31, 2018 by madhushree.krishnamurthy@logicinfo.com

Hello,

I am trying to do a mapping which is as under. There is an element called sequence number under different elements.

While assigning the sequence number it should start from 1 for the first sequence number, 2 for second sequence number etc. and it needs to be reset to value 1 again for the next mapping. I mean for the second record.

The LI1 here is unbounded thus the desired output is something as mentioned below. I have used line increment function and have set the cache by map. increment by 1 and reset to 1. But I am getting 1 as value everywhere. it would be helpful if I get a solution for this.

<LI1>

   <sequence_no>1</sequence_no>

   <A>

   <B>

</LI1>

<LI1>

   <sequence_no>2</sequence_no>

   <A>

   <B>

</LI1>

<LI1>

   <sequence_no>3</sequence_no>

   <A>

   <B>

</LI1>

<LI2>

<sequence_no>4</sequence_no>

   <A>

   <B>

 </LI2>

 <LI3>

   <sequence_no>5</sequence_no>

   <A>

   <B>

</LI3>

Outcomes