Originally posted by Deborah Slater
We have 3 little procs coded within a .tcl which lay within a namespace which allow us to write data to a file when processing an inbound message and then retrieve that data to associate it with the outbound message.
We want to reuse these procs during translation on another site, but we are getting error:
Xlate 'NewOrderIn.xlt' failed: Tcl callout error
erroCode: NONE
errorInfo:
invalid command name "connid::write"
while executing
"connid::write $connid
" (procedure "xltAAHGenConnID" line 20) invoked from within"xltAAHGenConnID"<End of errorInfo>I can see the procs in the tclIndex (and as expected without the namespace qualifier). I have tried adding: namespace export write in the original file and package require connid in the new procbut then I get the cannot find package error. I've been reading Chpt 14 in the Welch book, but it looks like I should be able to access the proc just with the connid:: namespace identifier, so I don't know what I am doing wrong. Any suggestions greatly appreciated.