Get host xlate name in included xlate

Clovertech Forums Cloverleaf Get host xlate name in included xlate

  • Creator
    Topic
  • #121628
    Jim Kosloskey
    Participant

      CL 2209 Windows.

      It is useful to be able to get the name of the Xlate in which Tcl code is executed. Does anyone know how to get the host Xlate name from within an INCLUDEd Xlate?

      Example Host Xlate ‘123.xlt has an INCLUDE for abc.xlt. I can log the Xlate name inside the host Xlate (123.xlt) and the INCLUDE Xlate name (abc.xlt) from within the INCLUDEd Xlate. What I would like to do is to be able to log from the INCLUDEd Xlate the name of the Host that INCLUDEd the INCLUDEd Xlate.

      I do not see a global variable for that – anyone know if that is possible?

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

    Viewing 1 reply thread
    • Author
      Replies
      • #121647
        Jason Russell
        Participant

          We haven’t had the opportunity to use INCLUDE in our xlates yet, but when you INCLUDE, does it pass the variable down to the included xlate file? IE: Define a variable before including it (call it @xlatehost or whatever), then call that variable in the included xlate if necessary? I’m not sure there is a global variable that would have that directly (again, haven’t researched much on the topic yet).

        • #121649
          Jim Kosloskey
          Participant

            Jason,

            Yes, one could get the host xlate name in the host xlate and set a temp variable (temp variables are transferrable between host an included xlate and vice-versa) but that reduces the generic potential of the facility. I was hoping there was something already in place under the covers that could be referenced.

            Before I explored alternatives and alternatively asked for an enhancement, I wanted to find out if there was something already provided.

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

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.