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
Read Only Archives
Cloverleaf
Cloverleaf
Tcl Eval Trouble Calling Namespace
Jerry Tilsley
All,
I have the following code
if {$type == "support"} {
set result [eval "SCRLibraryEDM_support::WriteEDMHeader" {$doctype $foldertype $foldername $filename $facname $acctno $servdate $mrn $docdescrip $processed}]
echo "<$result>"
}
[/code.
but would rather do something like this:
[code]
set result [eval SCRLibraryEDM_$type::WriteEDMHeader {$doctype $foldertype $foldername $filename $facname $acctno $servdate $mrn $docdescrip $processed}]
[/code
But when I do that I get a tcl error saying "type::WriteEDMHeader" is not a valid variable. Why is the substitution not working here? Can someone provide me some hints as to the correct syntax?
Thanks,
Jerry[/code]
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Ron Archambault
Jerry,
Try putting { } around type.
SCRLibraryEDM_${type}::WriteEDMHeader
That should work for you.
Jerry Tilsley
Beautiful! I had tried {$type} before but the brackets would stay. So your thought of putting the $ outside of the brackets fixed it!
Thanks!