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
Cloverleaf 19.1 namespaces
Paul Bishop
We just upgraded to 19.1.2.1 from 6.1 and ran across this "feature" and am wondering what others did to get around it.
I have two different tps procs, one named proc_1 and another named proc_2 (not their real names ;-)). Both procs have a namespace called "workSubs" (namespace eval workSubs), the namespaces in each have a proc called "parseHL7" (proc parseHL7 {msg}). When you save a tcl proc in version 6.1 there are no warnings and the parseHL7 procs are not in the tclIndex file. When you save a tcl proc in version 19.1, you receive a warning about a duplicate process name "::workSubs::parseHL7". Each one does a completely different function (pulls different fields).
So is the best option here to rename either the namespace or the procs within each tps script?
Thanks!
Find more posts tagged with
Clovertech
Comments
Jeff Dinsmore
I would expect them to cause problems in 6.1 too.
Do the two namespaces exist in different sites in 6.1 and in a master or other common site in 19.1?
Ultimately, they'll have to be unique.
I usually use unique namespaces. That way, even if you have procs with the same local name, they won't conflict.
Something like:
::proc1WorkSubs::parseHL7
::proc2WorkSubs::parseHL7
Paul Bishop
in our 6.1 (production) environment, the procs are in the same site. When I looked at the tclIndex file, the namespace procs weren't listed which is why it wasn't an issue there. In the 19.1 (test) environment, the namespace procs are listed in the tclIndex.
Charlie Bursell
Make a package with different proc names. Tcl will look for packages one level deeper than the search path so I usually create a directory under site/tclprocs called library or similar or in root/tclprocs/library if I want to use across sites. I usually provide a suffix like .pkg, i.e., mypack.pkg to discern from regular Tcl procs. These will not show up in your tclIndex but will create a pkgIndex in the library site. Once created call it like any namespace.