xlatestr commands

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf xlatestr commands

  • Creator
    Topic
  • #55244
    Bob Schmid
    Participant

      how does the content area output get passed to the pre proc/post proc ?

      is it source -> to content area -> to pre proc -> Destination

      or source -> pre-proc  -> content area to Destination

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

          Bob,

          By ‘content area’ do you mean XlateInVals, XlateInList, etc.?

          If so at the time of the Tcl invocation inside the Action (like a COPY) what was specified in the source is in the ‘in’ lists.

          Source–> ‘in’ lists, your proc, –>’out’ list (CALL).

          Source–> ‘in’ lists –>’out’ list, your proc modifies ‘out’ lists (COPY and other non-CALL Actions).

          If the Action is a CALL then there is nothing in the ‘out’ lists as I understand it unless your proc puts it there.

          If a COPY on the other hand then what is in the source exists in the ‘out’ lists as much as the Xlate can accomplish until a proc changes it.

          For example if you list 4 literals in the Source column and you have a HL/7 3 component field in the Destination column then unless your proc changes it the first 3 Source literals will be the first 3 components of the Destination HL/7 field.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

        • #84691
          Bob Schmid
          Participant

            we are presented on the xlate config with three sections:

            Function and Content:  assume one xlateStr command allowed here….producing (implicitly) xlateOutvals

            and good ol’ PreProc/PostProc tclfrag section

            Just wanted to know the processing order from Source thru Destination

            preproc first than XlateStr content section…….

            I can play and figure it out…was trying to be lazy….documentation…once again (intentionally?) falls short!

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