infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
Get host xlate name in included xlate
Jim Kosloskey
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?
Find more posts tagged with
Clovertech
Comments
Jason Russell
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).
Jim Kosloskey
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.