Hi,
I’ve tried to incorporate the xlateName into an xltp proc by reading the above mentioned global variable.
upvar _XIO_DefFileName defFileName
echo “defFileName = [array get defFileName]”
set xlateName $defFileName(xltLoadDef-recid)
This works perfectly fine in the testing tool.
Please Wait ……
Command Issued: hcixlttest -i -e latin1 -d 1 -f eof HL7_SY011_A01.xlt D:/Cloverleaf/cis5.8/integrator/_demo/testdaten
Command output:
defFileName = xltLoadDef-recid D:/Cloverleaf/cis5.8/integrator/_demo/Xlate/HL7_SY011_A01.xlt
However, deploying the same proc outside the testing tool returns an error:
errorInfo:
can’t read “defFileName(xltLoadDef-recid)”: no such variable
while executing
“set xlateName $defFileName(xltLoadDef-recid) ”
(procedure “HC_xlog” line 11)
invoked from within
“HC_xlog 1”
defFileName =
…thus rendering the idea – neat as it is – useless.
Does anyone know how to fix this?
Maybe something wrong with the upvar stack level?
Greetings
Simone