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
TCL - lookup table
Stewart
Is it possible to use the lookup table w/ tcl scripts? If so, how do you do this?
Find more posts tagged with
Clovertech
Comments
Rob Abbott
The "tbllookup" command provides Lookup Table functionality from Tcl.
Gene Millard
tablename is the name of the table
variablename is the name of the variable you are checking in the table
x is what is returned
set x [tbllookup "tablename" "variablename"]
Paul Bishop
and if your table is bi-directional, there is a "-side <side name>" parameter you can add before the name of the table.
RobertKersemakers
I always use hcitbllookup. They seem to be identical.
Is one of these older or better? Or is it recommended to use one of the two?
Stewart
How do you handle a lookup that has more than one condition?
set procid [tbllookup its_proc_id.tbl $categoryID $procedureMnemonic
Jim Kosloskey
What do you mean 'more than one condition'?
Stewart
the query will match on 2 things, category and mnemonic.
Jim Kosloskey
Do both values reside in a side of the table with no separator like this:
|categorymnemnonic| or with a separator of some kind (caret used here) like this:
|category^mnemonic|?
in either case I would try concatenating the 'category' and 'mnemonic' values together with or without separator as appropriate then do the lookup.