Iterate

  • Creator
    Topic
  • #48038
    Robin Luce
    Participant

      Hello all,

      This is my first post. Go easy on me. Openlink programmer; new to QDX. I’m not finding much documentation on exactly how to set up an Iterate. I have a FRL inbound message, shipping feedback for Lawson materials managment, that needs to Iterate into the last segment of an HRL. I don’t find any docs on setting up variables; and, I can’t get the copy to basis button to light up. Probably because I don’t have a valid variable. At any rate, the documentation does not make too too clear on how to set up the type, basis, and variable in the Iterate screen. You know, it says stuff like “use the basis field to define a basis”. No joke. Is there any good documentation anywhere on exaclty how to set up Iterate? We’re live with this interface and the same MM people that OK’d all the test data are now saying that it’s all wrong–reinventory the warehouse, etc. etc.

      Thanks a ton!

      Robin

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

          Robin,

          Are you sure you need to iterate? It sound like each field of the FRL needs to populate an HRL or something else.

          It has been a long time since I have worked with FRL and so much of this is from a somewhat hazy memory.

          In any case, as I recall with an Frl you can only have a repeating field and there is something (I don’t recall right of the top of my head what) you need to define in the FRL so that the field is considered repeating. Then I think the Xlate configurator will activate the COPY to Basis.

          However, you can set the basis manually in the iterate configuration. Just type in the proper path. As far as the iteration counter (I think that is what you mean by ‘variables’) I believe for an FRL only the ‘List’ (%l) counter is valid and that assumes a fixed number of repetitions where you build a list for the number of repetitions. If your mesage has a variable number of repetitions then maybe you have a VRL or something else.

          You can manipulate iteration counters (even ones not associated with an ITERATE Action) by prepending a $ to the counter ($%g1 for example) and then doing whatever Action or Tcl activity you want to the counter.

          If you want to email me directly to clarify, etc. email me at michiliman@comcast.net.

          I hope I have not muddied the waters very much.

          Jim Kosloskey

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

        • #57425
          Anonymous
          Participant

            Hi Robin,

            If you’re source message is a fixed length message then the only iterate option would be ‘list’.  ‘Segment’, ‘group’ and ‘field’ apply only to the heirarchial style record layouts like HL7 or X12.

            I was thinking, though, that what you really mean is that you want to receive several fixed length messages and turn them into a single message.  Is that what you want to do?

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