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
Case insensitive tbllookup
System
Originally posted by Usman Azher
Is there a way to do a table lookup without worrying about case sensitivity?
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
You can invoke a Tcl XPM Type proc to possibly influence that (using tbllookup) but other than 'normalizing' the table entries to a particular case (like all lower or all upper) then use the STRING Action (strtoupper or strtolower functions) or Tcl to convert the source field to a matching case prior to lookup I don't know of any option included in the actual TABLE Action. At least up to release 6.2.
Paul Bishop
The tbllookup command itself does not have a flag to make it case insensitive and the GUI doesn't have a flag either.
What I do for a translate is copy the value I'm looking up into a variable with some tcl code to convert it to either all upper case or all lower case (string toupper/string tolower), and then use that variable in the table lookup.
For TCL programs, I just wrap the lookup field in a string command:
set table_result [tbllookup my_table.tbl [string tolower $lookup_string]]