You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Preserve previous value and actual value of for each on data mapping

Summary:


Content (please ensure you mask any confidential information):

Hi experts,

I am working on an OIC integration where I must have a for each in the data mapping.
In the loop I must show the value of the previous iteration and the value of the current iteration similar of this:

Input:

  • P00001
  • P00002
  • P00003
  • P00004
  • P00005

expected output:

iteration 1:

last_value = '' and curr_value = P00001

iteration 2:

last_value = P00001 and curr_value P00002

iteration 3:

last_value = P00002 and curr_value P00003

……

….

I tried to do creating variables in the mapping as follows:

<ns16:response-wrapper xml:id="id_42">
<xsl:for-each select="/nstrgmpr:execute/ns16:request-wrapper/ns16:paradas">

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!