make up a repeating field

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf make up a repeating field

  • Creator
    Topic
  • #49201
    Hongle Sun
    Participant

      Hi, How can i do this: in XLT

      that says:

      two ibound data distribute in :pid 105 and   pid 106

      i would like to make up a repeating field pid105 and outboud data like pid105~pid106

      pid ||a|b||…

      after translated

      then

      pid||a~b|||…

      Thanks

    Viewing 0 reply threads
    • Author
      Replies
      • #61084
        Jim Kosloskey
        Participant

          Sun,

          First of all PID-2 (00105) is not normally a repeating field.

          So the first thing I would do is to modify the outbound variant to make it a repeating field.

          Then use the address path within a COPY Xlate Action to specify the occurance of the field (outbound) – something like this (the elipses are simply to indicate palceholding of address path notation):

          COPY

          …PID…00105(0)   –> …PID…00105(0)   (copying PID-2 (00105) to PID-2 repetition 1)

          COPY

          …PID…00106(0)  –> …PID…00105(1) (Copying PID-3 (00105) to PID-2 repetition 2).

          Jim Kosloskey

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

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