XLT – Iterating question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf XLT – Iterating question

  • Creator
    Topic
  • #53320

    I need to insert a value in PV1- 52.X.0 where X is the repeating value. The message may contain cc/review doc information in PV1-52.X from the source or other Xlate code prior to mine.  So, I need to be careful in not over writing what

Viewing 1 reply thread
  • Author
    Replies
    • #77273
      Jim Kosloskey
      Participant

        You can’t iterate over outbound elements thus your iterate is not working.

        email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

      • #77274
        Robert Kersemakers
        Participant

          As you can’t iterate through the outbound message (only through inbound message), you will need to solve this in a different way.

          You will need to keep track of how many PV1-52 repeats you have already done.

          So first initialize a field-variable (Copy =0 -> $%f9) and after each write to PV1-52 you will need to increase this value (Math add $%f9 =1 -> $%f9). Then after you’re sure that all the writes to PV1-52 have been done, you can write to the next PV1-52 repetition with this field-variable (Copy =text -> PV1-52.%f9)

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

      Viewing 1 reply thread
      • The forum ‘Cloverleaf’ is closed to new topics and replies.